Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push Notification in Android?

Is it possible to create a Push Notification in Android? What I exactly want is whenever I have something to say to the users of my Application, I want some Alert Dialog to pop out "only" if I have something to say like "The new update is now available in the market, please update your application". Can someone guide me with this?

like image 901
user739375 Avatar asked May 06 '11 11:05

user739375


People also ask

What is push notification in mobile?

Today, both mobile push notifications are also supported on Android devices. Messages are sent from a mobile app to a user's phone screen. Before viewing these alerts from companies, a user must have downloaded their mobile app and opted into notifications.

What is the purpose of push notifications?

The concept behind push notifications is quite simple: they are messages sent to a user's mobile device from an app they've downloaded. Their purpose is to add value and keep the user interested in the mobile app.


2 Answers

There's the Android Cloud to Device Messaging framework (C2DM). It requires Android 2.2 or greater. If you require something that works with prior versions, Urban Airship has something that may suit your needs. I have used neither, so I can't say whether they are any good or not.

Edit:

Important: C2DM has been officially deprecated as of June 26, 2012. This means that C2DM has stopped accepting new users and quota requests. No new features will be added to C2DM. However, apps using C2DM will continue to work. Existing C2DM developers are encouraged to migrate to the new version of C2DM, called Google Cloud Messaging for Android (GCM).

like image 139
ageektrapped Avatar answered Sep 27 '22 23:09

ageektrapped


Standard way to show notifications in Android are Status Bar Notifications.

If you need to push notification from the server to devices you might want to take a look at Cloud to Device Messaging.

like image 23
Peter Knego Avatar answered Sep 27 '22 23:09

Peter Knego