Best way to to receive push alerts in an Android application

346285 pts.
Tags:
Android
Mobile
SMS
I've been tasked with writing an Android application that receives pushed alerts from our server. So far, I've two different ways to do it:
  1. SMS
  2. Poll the server periodically
I already know the problems with each method. SMS might be slow on arrival time and polling may destroy the battery. So what's the better way, in your opinion?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Polling would be the best bet because if you do SMS it will also effect the user’s data usage (if they have any).

Now, if you poll every second while the service runs yes, it will drain the battery bad.  However, if you poll every minute or longer it will not be as bad.  Usually 10-15 minutes should be good unless its a critical need.

-Eric Hansen

————–

None of those options is the best, and polling is obviously not ‘push’.

The best option for actual push notifications is “Google Cloud Messaging” which is a free Google service, which, unlike polling, allows you to have almost real-time data updates without draining users’ battery.

Here’s the official page:

Google Cloud Messaging for Android

-CarlosDL

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following