Closed Thibil38 closed 11 years ago
yes, just change the value in registerForPushNotification(). Instead of the email adress, put your new projectId
Thanks very much. Great ANE !
Android version don't work with new GCM.... iOs version work fine.
distriqt has upgrade thier ANE : http://labs.distriqt.com/post/1214
I cant get the android to work can you tell me which part is wrong?? Below is my code...
PushNotification.getInstance().setBadgeNumberValue(1); PushNotification.getInstance().sendLocalNotification("Test test ", 20, "Testing", 0); PushNotification.getInstance().registerForPushNotification("369542502987"); PushNotification.getInstance().addEventListener(PushNotificationEvent.COMING_FROM_NOTIFICATION_EVENT, onComing); PushNotification.getInstance().addEventListener(PushNotificationEvent.PERMISSION_GIVEN_WITH_TOKEN_EVENT, onNotificationConfirmed); PushNotification.getInstance().addEventListener(PushNotificationEvent.PERMISSION_REFUSED_EVENT, onFailed);
Did I call anything incorrectly or smth? The registerForPushNotification doesn't seem to work to me it never actually dispatch the PERMISSION_GIVEN_WITH_TOKEN_EVENT, I made my google project and add the GCM API on it.. I really need this to work...
Manifest file given in README has a mistake. The below line needs to be changed. android:name should be set to "INSERT.APP.ID.HERE.permission.C2D_MESSAGE"
I wasted a day figuring it out. Hope it helps someone else.
Thanks for catching this @nageshwara ! README has been updated.
I friend.TY for the great Job. I have a problem to implement in my adobe air android app.My code for showing a local push notification not working.
Has your ANE work with the new cloud ? http://developer.android.com/guide/google/gcm/index.html