MismatchSenderId消息错误Firebase-邮递员/卷曲

时间:2019-02-28 21:50:07

标签: javascript reactjs firebase notifications firebase-cloud-messaging

我确定一切正常,但收到以下错误消息:

{
    "multicast_id": 5118488020259675566,
    "success": 0,
    "failure": 1,
    "canonical_ids": 0,
    "results": [
        {
            "error": "MismatchSenderId"
        }
    ]
}

我正在使用postmanreactjs

enter image description here

enter image description here

enter image description here

export const initializeFirebase = () => {
  firebase.initializeApp({
    apiKey: "AIzaSyAGMyGtfn3Wc-EilOk****",
    authDomain: "parsebaruser.firebaseapp.com",
    databaseURL: "https://parsebaruser.firebaseio.com",
    projectId: "parsebaruser",
    storageBucket: "parsebaruser.appspot.com",
    messagingSenderId: "972****9"
  });

我正在使用localhost:3000,并从控制台浏览器复制/粘贴令牌。

我用curl测试它:

curl -X POST \
-H "Authorization: key=  AAAA4mwLHDM:APA91bEreNXS-XlVr6O3EprtERMTOR7DDluvbgMTuvzvyjNVNquTB0ZY4blDU3h6LnOAqSJcSX0PILWPCz3Tt1wCIVs3dw0zbnuFDvJrE7d8uyTIHo396RyywZtDmrkQD01A_******" \
-H "Content-Type: application/json" \
-d '{ 
"registration_ids": [ 
"cIwSFWKLlew:APA91bGyJn2poe3NFupTQQ9LtmT9NVOwCzjbgnZRvSW9zwj91za5gUaR6jDsTm6A5GhXEZBX6KL9WSCGf8K08ZEOXctgJPHJD9XAChDT59tet05fu879NbMURQ9F_bkfU6DVgu-FzuPN"
], 
"data": { 
"message": "Manual push notification from ----"
},
"priority": "high"
}' \
https://fcm.googleapis.com/fcm/send

0 个答案:

没有答案