Push notification using smack and openfire in android

Hello everyone,

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.

1 Like

I’ve tried Pushbullet, notify my android with no success. Email on Away could be perfect, except there is no configuration, it’s an all or nothing plugin.

you should go for gcm its easy to implement, you can check user status for that if user is offline, then you can send notification message using GCM.