[android-developers] Send a message from server to mobile

2014-12-07 Thread Davide Cerbo
Hi all, in my application I need to send a message to my application in background. Now I'm using Push notification, but sometimes aren't so fast. What can I use, or how I can I have more fast Push notification? thanks in advance, Davide -- You received this message because you are

Re: [android-developers] Is it possible, that Android kills a service inside an app?

2014-12-07 Thread TreKing
On Thu, Dec 4, 2014 at 11:32 PM, Peter Teoh htmldevelo...@gmail.com wrote: well...you contradict yourself: same URL you quote: Note that services, like other application objects, run in the main thread of their hosting process. So, ok, service is not a thread, but the main thread is

Re: [android-developers] Send a message from server to mobile

2014-12-07 Thread TreKing
On Sun, Dec 7, 2014 at 10:54 AM, Davide Cerbo davidece...@gmail.com wrote: Now I'm using Push notification, but sometimes aren't so fast. What do you mean they aren't so fast? What's the delay you're seeing? Are we talking seconds, minutes, hours, or days?

Re: [android-developers] Send a message from server to mobile

2014-12-07 Thread Kristopher Micinski
Usually push notifications should be fast enough. They should be on the order of seconds. If you need something faster the only way I can think of that might possibly improve speed is a connection to the server that remains open: but I would highly doubt that it would really improve anything