cordova-plugin-fcm ERROR : invalid api key

倾然丶 夕夏残阳落幕 提交于 2019-12-22 05:59:24

问题


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

  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 

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

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

How can I do the testing properly?


回答1:


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



来源:https://stackoverflow.com/questions/39831402/cordova-plugin-fcm-error-invalid-api-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!