ios - XMPPFramework does not send keep alive in background even with enableBackgroundingOnSocket set to TRUE -


i think title illustrating enough. want xmppframework work ( service ) in background , receive messages when app not in active state. have set

xmppstream.enablebackgroundingonsocket = yes;

but no progress here. app goes background, still receives messages ( , shows notifications ) few seconds, if inactive few seconds ( , idle ( no incoming message ) ) no longer work in background. have trying logging , saw app sending keep-alive packets, within few seconds after receiving last message ( last activity ) , if there no activity few time, stops sending keep-alives , app wouldn't notified , work anymore. in case matters, have set "keep alive sending interval" 5 seconds.

i appreciate quick help.

thanks lot

probably not related xmpp framework.

you want application run in background. need mark background application.

check out: http://www.raywenderlich.com/29948/backgrounding-for-ios

the closet solution tell ios application voip application.

for testing purposes can set 'application not run in background' 'no' , 'required background modes' 'app provides voice on ip services'.

this done in application plist file.

however, not sure apple approve application without providing voip services.

hope helps, yaron


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -