typescript - How to receive GCM push notifications sent when app was stopped or device shutdown? -


i'm developing app using ionic 2. app must receive push notifications.

in situations app killed "force stop" option in android. other situations device shutdown. in such situations app don't receive push notifications, if background-mode plugin enabled.

anyway know push notifications stored in place, in queue waiting delivered. when start again app, notifications sent while app not running not automatically received app. if receive new notification @ moment notification sent when app stopped received app.

my question how force app receive notifications sent when app stopped or ask gcm send notifications?

when using gcm if app stopped (not in background) application cannot receive gcm messages. messages lost.

if device not connected eg: off, messages can saved gcm (see time_to_live field) , when device comes online message sent, if app had not been stopped receive message.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -