I am using silent push notification in XMPP chat application. Using that I want to connect to XMPP server when app is not running or not in background mode. I am receiving silent push notification and I enable following flag of xmppStream for background connection.
xmppStream.enableBackgroundingOnSocket = YES;
But socketDidConnect method is not being still called when app is not running and can't able to connect to XMPP server.
The purpose of this is to send message received status to XMPP server. So guide me about this.
I don't want to use VoIP for this. So please provide me alternate solution for this.