Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase FCM InternalServerError

I implemented Firebase FCM in my app about a month ago, and it has worked great ever since, until today. When I am trying to send a push notification from my console, nothing ever shows up. I find this very strange considering it worked before I went to bed yesterday. I do also have a PHP script that sends push notifications (FCM) as well, which also was working - but when I try to use this to send a push notification, I get this:

{"multicast_id":5593178441415796544,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InternalServerError"}]}

I find this very strange. I Googled this, and I read something about re-generating my APNS certificates (because they might be wrong or something), which I thought was weird as well, due to the fact that I created new certificates yesterday as well (which was working). Now I have once again tried to delete, and generate new - without any luck.

I also want to point out that when I go to my 'Cloud messaging' tab in Firebase, to configure my certificates, I am unable to delete - only re-upload.

What could this possibly be? I have checked my certificates and my API key is correct. It was working 100% 10 hours ago.

Could this be a Firebase problem, or how would I solve this? Help is much appreciated.

like image 699
askaale Avatar asked Oct 28 '16 10:10

askaale


1 Answers

Most of the InternalServerError returned by FCM before February 2017,
were due to issues with the APNs certificates.

The API has now been updated. Now if there an issue with the APNs certificate,
FCM will return error:InvalidApnsCredential

like image 163
Diego Giorgini Avatar answered Sep 28 '22 21:09

Diego Giorgini