i am developing a push notificacftion system with GCM. I have seen that all the notifications dissappear after x seconds.
How can i do to make them permanent until the users clicks it or close it?
i am developing a push notificacftion system with GCM. I have seen that all the notifications dissappear after x seconds.
How can i do to make them permanent until the users clicks it or close it?
You can use the time_to_live parameter, 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.
Check this documentation to know the different parameters that you can set in your GCM.
Also,Check this link and SO question for more information.