-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Game crashes when send notification message from firebase to game using token #96
Comments
A wrong structure in the incomming message (JSON) cause a crash in the apps, { check: |
It still does not work. |
I can see the notification that I am getting from the server in the console. But Application just crashes. It is so disappointing. |
I'm having the same problem. If anyone knows how to fix this please share. |
I fixed it. You can download ANE from here: You should send: {"contentTitle":"Title..","contentText":"Message...","tickerText":"...","priority":"2"} You will need AIR 25+ To change the icons:
|
Not working for me.Can you help me? |
->Got event token by using below code;
var push: PushNotification = PushNotification.getInstance();
if (push.isPushNotificationSupported) {
push.registerForPushNotification("XXXXXXXXXXXX"); //App ID
}
push.addEventListener(PushNotificationEvent.PERMISSION_GIVEN_WITH_TOKEN_EVENT, onRegistered);
function onRegistered(event: PushNotificationEvent): void {
txtMsg.text = "" + event.token;
}
->My XML file is ;
xml.docx
->I am using below ANE & not using SDK ;
https://github.com/freshplanet/ANE-Push-Notification/blob/master/bin/AirPushNotification.ane
->I am using firebase for sending notification message to game.
Game crashes when send notification message from firebase to game using token & i am not getting any notification. i want to send notification message from firebase to game ... please Help!!! for solve this problem.
The text was updated successfully, but these errors were encountered: