I want to send notification to users when they are offline like whatsapp.
I found one solution that i can keep connection open all the time in service. Is there any other way. I dont want connection to be open all the time,
it should get close pnce user killl the app.
Should I integrate GCM for the same , and if yes then how to integrate it.
Thanks in advance.