FCM getting MismatchSenderId

前端 未结 29 1931
刺人心
刺人心 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条回答
  •  暖寄归人
    2020-12-04 18:00

    I found this solution:

    • First I check server key is correct or not it was correct which is like AIzaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    • Then I check Sender Id like 79XXXXXXXX it was also correct.
    • Main issue was in device_ID(UDID) to whom I have to send the notification. Actually DeviceId we got on android side in FCM is different than GCM. You can't use GCM created DeviceId in FCM.

提交回复
热议问题