2

I have moved my app notification code from C2DM to GCM. In this i have a inbox for notification. Everything is working as expected. But notification doesn't work in below scenario:

I have installed the app. If I send notification, it comes to notification bar and in inbox also. If i force close the application from settings. Now, If we try to send the notification again to the device then we are not getting notification in notification bar but it is coming in notification inbox.

Note: I am using android 2.3.
For ICS and Jelly Bean: I have read in this post that if you force stop the app from settings then u will not get notification. Is it same problem here?

thanks in advance.

user932205
  • 37
  • 1
  • 7
  • welcome! Please share the piece of code that wont work for the community to help you – K_B Nov 15 '12 at 09:45

1 Answers1

3

Yes that's true. If you force stop the app, the message can't be received (unlike iOS/APNS). The Xtify service will be restarted and messages will be received when the user re-opens the app or the user restarts his/her device.

Michael Bordash
  • 1,072
  • 1
  • 10
  • 20
  • 3
    I don't agree with this. Because, if you Force Quit the Facebook application, the messages are still received for Facebook application. I think, there should be a mechanism by which the messages can be received. – Asif Bilal Jul 23 '14 at 11:37
  • did you find a way out ? – abhishek Jul 29 '14 at 12:13
  • Read: http://stackoverflow.com/questions/20838415/gcm-push-notification-works-after-app-force-stop – Michael Bordash Jul 31 '14 at 23:09