cordova-plugin-fcm错误:无效的api密钥 [英] cordova-plugin-fcm ERROR : invalid api key

查看:121
本文介绍了cordova-plugin-fcm错误:无效的api密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 cordova-plugin-fcm .我已按照安装说明进行操作:

I am using cordova-plugin-fcm. I have followed the installation instruction:

  1. 安装插件
  2. google-services.json添加到我的根文件夹中
  1. install plugin
  2. add the google-services.json to my root folder

我想通过他们的测试服务器进行测试,但出现错误:

I wanted to test it through their testing server, but I get the error:

ERROR: invalid api key 

我插入的键是条目中文件google-service.json中的键:

The key I inserted was the one from the file google-service.json in the entry:

"api_key": [{"current_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}]

如何正确进行测试?

推荐答案

使用FCM时,您应始终使用

When using FCM, you should always make use of the Server Key seen in the Cloud Messaging Tab in your Firebase Console.

这篇关于cordova-plugin-fcm错误:无效的api密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆