Skip to content
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

Can't get any response from GCM on Android 5 and 5.1 #94

Open
RamanMIPL opened this issue Aug 16, 2016 · 5 comments
Open

Can't get any response from GCM on Android 5 and 5.1 #94

RamanMIPL opened this issue Aug 16, 2016 · 5 comments

Comments

@RamanMIPL
Copy link

Hello I am using GCM ANE in my Application. But GCM seems to work in below Android 4.4 and but not seems to work in android 5.0 and above. Please help me.

@fullflash
Copy link

guess this lbrary abandoned need to search for another solution

@skolesnyk
Copy link

@fullflash , I've switched to Distriqt's.

@fullflash
Copy link

myflashlab gcm ane also good and there is non commercial free version on github also with php sample. Also helpful video tips.
Distriqt not have free version to test.

@yokoboko
Copy link

yokoboko commented Apr 10, 2017

I fixed it. You can download ANE from here:
https://www.dropbox.com/s/mvjgx0tg1cmz9e1/AirPushNotification.ane?dl=0

You should send: {"contentTitle":"Title..","contentText":"Message...","tickerText":"...","priority":"2"}
*priority is optional(-2 <---> +2)
** it will not crash if you don't send all params

You will need AIR 25+

To change the icons:

  1. Rename to .zip
  2. Open with WinRar(don't extract!)
  3. Drag and drop your icons to "\META-INF\ANE\Android-ARM\res\drawable-xhdpi" to replace files
  4. Close WinRar and change file name back to .ane

@AmirSmarty
Copy link

Im trying this code for my android air apps:
pushbi = PushNotification.getInstance();
//pushbi.
pushbi.registerForPushNotification("manakane-4939510");
pushbi.sendLocalNotification("Bonjour la famille",1515688406,"Nouveau Caractére offert");
pushbi.addEventListener(PushNotificationEvent.NOTIFICATION_RECEIVED_WHEN_IN_FOREGROUND_EVENT,NotificationReceived);

Not working with your ANE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants