Sending Notification to user when user is offline in android using XMPP
问题 I implemented an Android chat application using Smack client with XMPP server. Everything works fine when the user is online, now when the user is offline (the app is not in running state). I would like to push notification using GCM. Is there a way to achieve that, and is there a way that we can manage our server itself to take care of that? 回答1: You can send push notification any time the user is online or not but the device has internet.You have all devices device tokens so when you send a