Android Push Notification

2019-03-13 10:48发布

问题:

I refered link a link to develop Push Notification but while running it show me the UI (main.xml). What should I do to create Push Notification (C2DM server) sample app?

回答1:

This is the best C2dM documentation I've seen. It's in the form of a tutorial and it both explains how everything works, and provides sample code.

http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html

GCM is outdated. FCM comes as a replacement for GCM.

https://www.youtube.com/watch?v=uuiuVDb2bug



回答2:

Here's the documentation for Firebase Cloud Messaging Service that replaces C2DM and GCM: https://firebase.google.com/docs/cloud-messaging/



回答3:

C2DM has been officially deprecated as of June 26, 2012,instead of c2dm you can use android cloud to device management service(GCM)



回答4:

Free and easy method:

If your target user base is not large(less than a 1000) and you want a free service to start with, then Airbop is the best and most convenient.

Airbop Website It uses Google Cloud Messaging service through its API and is provides a good performance. i have used it for two of my projects and it was easy implementing it. You can easily build your sample app with it.

Services like Parse([Parse website])2 and Urbanship are excellent but paid and provide an entire deployment stack and not just the push notifications thing.

If only push service is your target, Airbop will work fine.

I haven't used Pushwoosh, but is also a great choice. It allows push to 1,000,000 devices.