(Android) Receive ACS Push Notifications after killing the App.

You must Login before you can answer or comment on any questions.

Afternoon.

Is there any way to receive the Push Notifications after I kill the App? I noticed this on the guide (for CloudPush):

> But if the user intentionally kills your application and its services in their task manager, push notifications will be disabled and this property will automatically be set to false.

That means that if I kill the app I won't receive the push notifications anymore.

Will I have to implement Google Cloud Messaging (GCM) instead?

Thanks in advance.

— asked 9 months ago by Demostenes Garcia
3 Comments
  • Where you able to fix this? I'm having the same problem.

    — commented 7 months ago by Pablo Farias Navarro

  • The uPush module in the marketplace works fine when the app is open or closed.

    — commented 7 months ago by Alan Browne

  • I ended up using Parse and using the modules on the marketplace, more likely because Parse is a cheaper alternative for just Push Notifications.

    Cheers.

    — commented 7 months ago by Demostenes Garcia

3 Answers

if you just close the app, it will not shutoff the background service that listens to the push, unless you purposely shutdown the backgroun service as well. the backgroun service restarts after your phone reboots.

— answered 9 months ago by Wei Kong
answer permalink
3 Comments
  • First of all, thanks a lot for your time and support. I really appreciate it.

    However, I'm not sure why I'm only receiving the push notification after I register and subscribe to receive them (without closing the app).

    If I close the app on the task manager, the phone won't receive the notifications anymore (until I restart the application and re-register for the notifications).

    Is anything wrong with my implementation? Or this is the expected behavior?

    I'm using this code as reference: https://github.com/railskarthi/acs_android_push

    However, I execute the whole code (the code for retrieving the device token, login, etc) after a button click. Is this fine?

    If needed, I can provide my code as reference.

    Thanks in advance.

    — commented 9 months ago by Demostenes Garcia

  • Which CloudPush version do you use? You can find it in tiapp.xml. And after restarting app, if push works fine on background (app closed)? If still does not work, could you send your token to me (plv@appcelerator.com) for further investigation?

    — commented 9 months ago by Paul Lv

  • Morning Paul,

    It does work when I close the application in a regular way (by hitting back button a couple of times), but if I kill the application on the Task Manager (Android) I won't receive any other notification.

    If I re-register the device to receive the notifications (after killing the App) I receive all the pending notifications.

    I'm using CloudPush 2.0.7. Let me know if you still need my code and token.

    — commented 9 months ago by Demostenes Garcia

bump.

I'm also looking for an answer to this question. I am able to get push messages on Android phone just fine when the app is open, or when I close the app using the back button a couple times, BUT if I completely kill the app in the task manager then I never get a push message until I reopen the app. Is there anything we can do to get push messages even if a user completely kills the app from the task manager? Should I setup a custom background process to look for incoming push messages?

Any help anyone can give me/us please let me know, it would be very helpful! :)

Thanks!

-Mark

Hi all, there's a new GCM module in the Marketplace called uPush for Android push messages, got it working with my project today in about 10 minutes, saved me so much time.

Your Answer

Think you can help? Login to answer this question!