I am just starting new on Openfire and using Strophe, trying to figure out a structure that can trigger GCM/APNS if a user if offline - to notify a user that they have a message so they will open a phonegap app, which then the connection will be back and the message pass through.
I am thinking, if i use strophe, and when i send a message out to another user(receiver in the one to one chat), i detect if the "receiver" is off/online or disconnected. If the receiver status is offline or if the receiver is not connected, then i trigger a GCM/APNS script.
I read about the Idle Clients Detection Settings, so does it mean the connection will be disconnected if the client is idled for a certain amount of time? And then if the receiver lost internet connection, there are no activity(or heartbeat packets) their connection will be disconnected, and i can use strophe to detect it? And i know the receiver(user) is not connected?
My question is can strophe do that with Openfire?(To detect of a specific id/username is on/offline or not connected?)
Or would i have to do it another way maybe with some plugin?
Thanks