I have an iOS chat app like Whatsapp. The chat is running well with XMPP protocol. The app has other functionalities, and has an APNS service running well with them. For the client I'm working with XMPPFramework, and for the server with PHP and Tigase for the XMPP server.
The question is this:
How to make the server send a push notification to an user, when the XMPP server receives a message for him and his presence is false?
Thanks!