How to get device token for Android for push notification?

Joshua,

I just went through setting up the GooglePushNotifications sample and entered the API key and project number and it worked great! When i ran the app again it gave the same message that the device has just been registered for Google push notifications. How come it did this again? I thought it only needs to register once?

Another question, the googleRegistrationId which is the event.token - is this what i would need to send to my server and save and then use for sending messages?

Thanks,

Warren

I believe you get the token everytime the app starts. You just need to update it if it changes because they can expire.

Corona does *not* register for push notifications with Google on every app startup.  It just provides the registration ID on every app startup to match iOS’ behavior.  Plus, it gives you the added convenience of not having to store this ID to file/database since Corona will do that for you.

And yes, you need to send that registration ID to your server because it is needed to send notifications.  Notice in the GooglePushNotifications sample project that it is used in the network.request() that sends the notification.

hi 

    i am using the push woosh to send the push notifications to my app. can you please tell the procedure to do it. i followed the link http://www.pushwoosh.com/programming-push-notification/corona-sdk-ios-push-notifications/  but i was unable to get notifications for android.can you please help me .

Thanks

info8888,

I suggest that you contact push woosh on how to get this working.  I have no experience with that service.

But before that, you may want to try getting push notifications working directly with Apple or Google before injecting push woosh support into your app, because it may just be a set up issue on that end.

info8888,

Did you get this resolved for the android? I would definitely like to hear how it is going.

Thanks,

Warren

hi 

    i am using the push woosh to send the push notifications to my app. can you please tell the procedure to do it. i followed the link http://www.pushwoosh.com/programming-push-notification/corona-sdk-ios-push-notifications/  but i was unable to get notifications for android.can you please help me .

Thanks

info8888,

I suggest that you contact push woosh on how to get this working.  I have no experience with that service.

But before that, you may want to try getting push notifications working directly with Apple or Google before injecting push woosh support into your app, because it may just be a set up issue on that end.

info8888,

Did you get this resolved for the android? I would definitely like to hear how it is going.

Thanks,

Warren