freshplanet / ANE-Push-Notification

Air Native Extension (iOS and Android) for Push Notification
Apache License 2.0
205 stars 104 forks source link

Android change cloud #2

Closed Thibil38 closed 11 years ago

Thibil38 commented 12 years ago

Has your ANE work with the new cloud ? http://developer.android.com/guide/google/gcm/index.html

titi-us commented 12 years ago

yes, just change the value in registerForPushNotification(). Instead of the email adress, put your new projectId

Thibil38 commented 12 years ago

Thanks very much. Great ANE !

Thibil38 commented 12 years ago

Android version don't work with new GCM.... iOs version work fine.

distriqt has upgrade thier ANE : http://labs.distriqt.com/post/1214

Andrias commented 11 years ago

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...

nageshwara commented 11 years ago

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.

ataugeron commented 11 years ago

Thanks for catching this @nageshwara ! README has been updated.

AmirSmarty commented 6 years ago

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.