相关疑难解决方法(0)

Firebase FCM giving Internal Server Error 6/10 times

I've implemented Firebase FCM for push notifications in my app, and it works great - except from, as my topic describes, it gives me this response aprox 6/10 times:

{
    error = InternalServerError;
}
)
, "multicast_id": 8370179651570531666, "failure": 1, "canonical_ids": 0, "success": 0]
Run Code Online (Sandbox Code Playgroud)

The rest of the times, it delivers the notification as expected!

I'm sending my notifications from my app, through https://fcm.googleapis.com/fcm/send as a POST-request like this:

func sendFcmNotificationToUser(title: String, message: String, to: String, sound: Bool, badge: Bool) …
Run Code Online (Sandbox Code Playgroud)

objective-c firebase swift firebase-cloud-messaging

5
推荐指数
1
解决办法
464
查看次数