Sagar Zala
Sagar Zala

Reputation: 5134

How much time Push Notification Stored in Google Cloud

I have created an Android Chatting Application in that I have setup Push Notification.

I have one query about validity of Push notification.

For example. If my phone is Shutdown for 1 month or more and my friends send me messages, then after one month when I start my phone can I get push notification.

I can't found about this topic.

Thanks.

Upvotes: 0

Views: 149

Answers (1)

PankajSharma
PankajSharma

Reputation: 1564

You can use the time_to_live parameter in the send request to specify the maximum lifespan of a message. The value of this parameter must be a duration from 0 to 2,419,200 seconds, and it corresponds to the maximum period of time for which GCM will store and try to deliver the message. Requests that don't contain this field default to the maximum period of 4 weeks.

The default timeout is 4 weeks, unless the time_to_live flag is set.

Refer to---https://developers.google.com/cloud-messaging/concept-options

Upvotes: 1

Related Questions