This week's book giveaway is in the Agile forum.
We're giving away four copies of Fixing your Scrum and have Ryan Ripley & Todd Miller on-line!
See this thread for details.
Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Push on web and mobile

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, someone can explain to me how I could implement a service to push messages on web and mobile (Android) using Java?
 
Marshal
Posts: 73748
332
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch

We didn't notice you until you posted
 
Campbell Ritchie
Marshal
Posts: 73748
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this question would sit better on a different forum, so I shall move it.
 
Luca Daffirzio
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:I think this question would sit better on a different forum, so I shall move it.


Thank you, sorry for my mistake...


Please help me, how can I push messages on web and mobile?
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a number of ways you can push messages to your device:

-> Polling - The mobile application would periodically poll one of your services and check for messages. However, as numerous people have pointed out, notifications are no good if they’re delayed due to a low polling period but the more frequently you poll, the more the battery is going to die.

-> SMS - Android can intercept SMS messages but you are limited by the size of the SMS payload.

-> Open a persistent connection - This fixes the polling issue listed above but would kill the battery.

Now, the leading push notification framework for Android seems to be Android Cloud to Device Messaging Framework (http://code.google.com/android/c2dm/#push) but it is in beta and you have to apply.

Another option is MQTT (IBM), a real good overview can be found here (http://tokudu.com/2010/how-to-implement-push-notifications-for-android).

Perry Hoekstra
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic