什么是 Google Cloud Messaging (GCM) 的 AUTH-TOKEN?

Posted

技术标签:

【中文标题】什么是 Google Cloud Messaging (GCM) 的 AUTH-TOKEN?【英文标题】:What is AUTH-TOKEN for the Google Cloud Messaging(GCM)? 【发布时间】:2016-07-15 13:54:27 【问题描述】:

我找到了用于 asp.net MVC 5 的库 PushSharp 和使用 GCM 的示例。

var config = new GcmConfiguration ("GCM-SENDER-ID", "AUTH-TOKEN", null);

据我了解,GCM-SENDER-ID 是来自 goodle 控制台的 App ID。但是什么是 AUTH-TOKEN?我尝试使用 api 密钥,但示例抛出“错误的身份验证”异常。 我在网上找到了一些教程,有人有同样的说法https://recordnotfound.com/PushSharp-Redth-3794

【问题讨论】:

【参考方案1】:

转到您的应用的 Firebase 控制台。

单击导航中项目名称右侧的“设置”“齿轮”按钮 - 这将打开一个上下文菜单。

点击“项目设置”。

然后在导航中点击“云消息”。

AUTH-TOKEN 是项目密钥下列出的服务器密钥。

【讨论】:

以上是关于什么是 Google Cloud Messaging (GCM) 的 AUTH-TOKEN?的主要内容,如果未能解决你的问题,请参考以下文章

什么是 Google Cloud Messaging (GCM) 的 AUTH-TOKEN?

Google Cloud Messaging VS Google Cloud Platform

Google Cloud 的使用

google.cloud.pubsub_v1 和 google.cloud.pubsub 有啥区别?

Google Cloud Run 的默认存储空间是啥?

Google Cloud Platform抢占实例:磁盘发生了什么?