google cloud messaging - GCM for web, notification dissappear after x seconds -


i developing push notificacftion system gcm. have seen notifications dissappear after x seconds.

how can make them permanent until users clicks or close it?

you can use time_to_live parameter, specify maximum lifespan of message. value of parameter must duration 0 2,419,200 seconds, , corresponds maximum period of time gcm store , try deliver message.

check documentation know different parameters can set in gcm.

also,check link , so question more information.


Comments