[英]What is the difference between the two different API keys provided from FCM
while creating an FCM project I noticed two different API-keys provided as follows; 在创建FCM项目时,我注意到以下提供了两个不同的API密钥;
1- in the google-servies.json file 1-在google-servies.json文件中
"api_key": [
{
"current_key": "the key"
}
],
2- and another one called Web API Key in the app settings on firebase console 2,另一个在Firebase控制台的应用程序设置中称为Web API密钥
What is the difference between both of them and the usage? 它们和用法之间有什么区别?
Web Api key is used to connect your server with google cloud to send message to your apps. Web Api密钥用于将您的服务器与Google Cloud连接,以向您的应用发送消息。 For example :
例如 :
Content-Type:application/json
Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
{
"to" : "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...",
"data" : {
...
},
}
https://developers.google.com/cloud-messaging/http https://developers.google.com/cloud-messaging/http
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.