简体   繁体   English

FCM提供的两个不同的API密钥有什么区别

[英]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.

相关问题 Google API 调试和发布密钥之间的区别 - Difference between Google API Debug and Release keys 两种语法有什么区别? - What is the difference between the two syntaxes? gradle依赖中的compile,testCompile和有什么区别 - what is the difference between compile, testCompile and provided in gradle dependency iOS 版 GCM 与 Apple 提供的推送通知服务有什么区别 - What is difference between GCM for iOS and push notification service provided by Apple Android API 和 Google API 有什么区别? - What is the difference between Android API and Google API? FCM和AdMob具有两个不同的帐户? - FCM and AdMob with two different accounts? 具有不同时区的两个日期之间的差异 - Difference between two dates with different timezones 两种类型的 FCM 推送通知有效负载(通知与数据)之间的区别以及它们何时到达 Android FirebaseMessagingService? - Difference between the two types of FCM push notification payloads (notification vs data) and when do they arrive to Android FirebaseMessagingService? 不同API级别之间的Android布局差异 - Android Layout Difference Between Different API Levels Android:两种sqlite方法有什么区别 - Android: What is the difference between the two sqlite approaches
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM