FCM getting MismatchSenderId

前端 未结 29 1974
刺人心
刺人心 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 17:48

    My problem was solved by entering the correct key as shown below.

    Copy Server key like this picture

    And then copy this code in post man like this picture

    and Body is row like this picture

    NOTE:

    • You must add key= before Server key in header
    • Make sure you enter the header keys correctly (Authorization = "key=..." and ContentType = "application/json")
    • You have sent the request to the correct address (https://fcm.googleapis.com/fcm/send and Post method)

提交回复
热议问题