Google-services.json : What goes in the 'api_k

2020-03-31 05:31发布

I want to enable Firebase Cloud Messaging for push notifications for my Android app. In the google-services.json file needed for push notifications there's a field called "api_key".

Right now I have "api_key": [{ "current_key": "" }]

Should I put the Web API Key I see on my Firebase Console?

2条回答
虎瘦雄心在
2楼-- · 2020-03-31 06:13

Get a new google-services.json file from the Firebase Console. There you can find the right api_key for your app.

查看更多
手持菜刀,她持情操
3楼-- · 2020-03-31 06:17

The api_key value in google-services.json is not used by FCM.
(it is used by other Firebase libraries)

Generally speaking do not touch the google-services.json that is provided by the Firebase Console. Just download it and add it to your app as is.

查看更多
登录 后发表回答