Sending Notifications to Users not working on IOS, but it is work on Android.
Getting error message, Internal Server Error
Any good ways to find out the reasons behind?
Also, we use the Post API Method, also does not work
Dear Ricardo Silva,
I just figured out what has went wrong:
For the current version of Firebase Project, we are no longer able to use APNs Certificates only, we need to switch to APNs Authentication Key in the Firebase Project:
After I generate the Auth Key and upload there, the internal server error is gone.
And it works successfully on IOS device.
BR,
Howard
Hey @Howard Law,
Can you share more info on the issue? How are you triggering the Server Action?
BR.
Hi,
The Set up is as below:
Mobile app stores each users' platform and device ID to database, for sending them the push notification using the plugin.
Both platform can be registered correctly.
However, when we use the Server Action SendNotificationToUsers to Push Notifications to users, Only IOS fails, Android can successfully receive the Notification:
Error message:
Is there any advise you could provide?
Sending Push Notification to IOS and Android, is there any difference on the input parameters?
If yes, please let us know. Thank you in advance.
Regards,
Two questions:
Not sure what plugin version you're using but there's a new one on Forge that you can use.
Thanks for your reply!
Answering your questions in red:
In the Mobile Application on application start, I run the below logic, it will get the device platform and token, register the device in FCM, this part is all good and those data can be stored in our DB.
Thanks for your help and idea!
After my testing, the IOS device still cannot receive the push notifications:
It is really frustrating since the root cause is still unknown.
Looking at that flow, I noticed the following:
From the last test, you mentioned that you still cannot receive the push notification. But are you getting the same error within the Server Action or is the Push Notification simply not appearing?
I mean, is there anything difference between the payload for IOS and Android?
Thanks!