FCM getting MismatchSenderId

前端 未结 29 1987
刺人心
刺人心 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:01

    I was trying to send notification using the fcm api "https://fcm.googleapis.com/fcm/send" from postman. Server key was ok and token was pasted fine but was still getting error "MismatchSenderId".

    Then introduced the follwoing dependency in the gradle file on android side.

    implementation platform('com.google.firebase:firebase-bom:25.12.0') 
    

    and it started receiving notifications on the device

提交回复
热议问题