Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Push Notification

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?

like image 855
Sugan S Avatar asked Feb 28 '12 09:02

Sugan S


People also ask

How do I turn on push notifications on Android?

Turn on notifications for Android devicesTap More on the bottom navigation bar and select Settings. Tap Turn on notifications. Tap Notifications. Tap Show notifications.

Does Android have push notifications?

Android Push Notifications For Android, the notifications by default appear on the lock screen, and when the phone is unlocked, are visible as small icons on the notification bar at the top of the screen.


2 Answers

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

like image 116
Tony O'Hagan Avatar answered Oct 21 '22 10:10

Tony O'Hagan


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

like image 25
Ollie C Avatar answered Oct 21 '22 11:10

Ollie C