FCM getting MismatchSenderId

前端 未结 29 1928
刺人心
刺人心 2020-12-04 17:34

I have an application that uses Google FCM for sending push notifications.

When i send a push notification to a group of users, i get a response of MismatchSen

29条回答
  •  Happy的楠姐
    2020-12-04 17:42

    For eliminate this error for mismatch sender Id In fcm

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

    there is error occured,

    1. So we required first, In FCM, register Application e.g MyDemoApplication

    2. After that FCM will generate server key i.e AIzaSyB9krC8mLHzO_TtECb5qg7NDZPxeG03jHU and sender Id i.e 346252831806 these format like these.

    3. After In Android Studio, our project is connect to these FCM created project i.e MyDemoApplication

    4. And most important step is there required to device token or registration id. These token must created in Android Studio..

    5. After that using Sender Id and API key in web API project u will be definitely getting notification

提交回复
热议问题