Open Frantrax82 opened 6 years ago
Hi @Frantrax82 ,
First of all, thank you for using UTNotifications! Have you tested it first with DemoServer provided, does it have the same issue? If yes, please check carefully if the android package id used in Unity Android platform settings and the one used when registered the app in Firebase Console match. Please also make sure you've specified google-services.json in UTNotifications settings in Unity. But if it works alright with DemoServer, try comparing what messages it and your server send to FCM servers, what's different between them. Unfortunately without specific values of the variables in the server code you've posted, I can't tell whether the messages you're sending to FCM servers are correct or not.
Please let me know if any of the ideas above worked or not. In the later case, please write us to universal.tools.contact@gmail.com: it might require getting your devices registration ids or even server keys (which you then will change of course) so I could take a better look into that issue.
Best regards, Yuriy, Universal Tools team.
Hi everybody! these days I have been some troubles during the ocnfiguration of the push notificactions. The local notifications works perfect but I have priblems to send notifications via server, when I send a notification, I received this response:
{"multicast_id":9173181968242791511,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]}
In he unity side, I have write this code:
I save a registration ID in my own database, but when I try yo send a message, the InvalidRegistration issue apears.
Here is the server side code, that sends the push notifications:
`//FCM API end-point $url = 'https://fcm.googleapis.com/fcm/send'; //api_key available in Firebase Console -> Project Settings -> CLOUD MESSAGING -> Server key $server_key = API_ACCESS_KEY;
Thanks!!!!!