Firebase 401 unauthorized error FCM

后端 未结 7 1410
自闭症患者
自闭症患者 2020-12-23 15:52

I\'m trying to test out Firebase Cloud messaging APIs as all functionality is not available from console (notably customization of notifications when app is in background).

7条回答
  •  滥情空心
    2020-12-23 16:38

    I noticed from your screenshot that you were using "key: serverKey". Could you try using "key=serverKey" instead?

    Also you don't need to have "POST fcm.googleapus.com/fcm/send"; this is not proper json and would explain the error you are seeing. The URL of the request is already defined elsewhere so remove it from the payload.

提交回复
热议问题