【发布时间】:2017-03-11 02:10:43
【问题描述】:
当我将 GCM API 密钥输入到通知中心时,它给了我错误:
{"error":{"message":"SubCode=40000. Failed to validate credentials with GCM.
The remote server returned an error: (401) Unauthorized...TrackingId:4de00134-abe4-41de-9785-009dda22c2bc_M0_M0_G7,
TimeStamp:10/28/2016 8:06:46 AM","code":"BadRequest"}}
谁能帮我摆脱困境?
【问题讨论】:
-
您是否使用 Firebase 控制台中的相应服务器密钥?
-
我没有使用 Firebase,我使用的是 Google 云消息传递 (GCM)。
-
我不是说你是。但是要在 Firebase 控制台中生成新的服务器密钥。请参阅我在回答 here 中链接的注释。
-
哦..谢谢@AL。非常感谢。
标签: azure authentication push-notification notifications google-cloud-messaging