在我的Web应用程序中,我正在获取GCM ID。现在转到FCM,我们添加了代码以生成令牌并更改了清单中的发件人ID。 在我们的案例中,由于我们丢失了与旧GCM令牌关联的旧gmail ID,因此我们正在使用新帐户和新FCM密钥。
出现以下错误:
Unable to get permission to notify. Or {code:
"messaging/incorrect-gcm-sender-id", message: "Messaging: Please change
your web app manifest's '…e messaging.
(messaging/incorrect-gcm-sender-id).", stack: "FirebaseError: Messaging:
Please change your web
a…gstatic.com/firebasejs/5.9.3/firebase.js:1:29212)"} code:
"messaging/incorrect-gcm-sender-id" message: "Messaging: Please change
your web app manifest's 'gcm_sender_id' value to 'XXXXXXXXXXX' to use
Firebase messaging. (messaging/incorrect-gcm-sender-id)." stack:
"FirebaseError: Messaging: Please change your web app manifest
答案 0 :(得分:0)
我认为您需要注销所有当前的订阅并重新订阅用户。