ios - App running in the background for 3 minutes -


i have app maintains socket connection server. when application backgrounded (home button tapped) connection breaks, , when user comes reconnection takes around 5 seconds. not much, still annoyance.

this works perfectly, think improve user experience if app asked background execution time with:

[[uiapplication sharedapplication] beginbackgroundtaskwithexpirationhandler:nil]; 

i 3 minutes additional runtime here, , socket can stay alive little more. if user returns in these 3 minutes there no reconnection, app can used again. (this happens quite often, because check e-mail fast, reply message etc... , return app.)

this improve user experience, , see apps use (like irc ios client). documentation says though:

you should not use method keep app running after moves background.

i don't want run longer 3 minutes or fake voip or music player app. minor user experience improvement. can apple reject app because of this?

(for let's ignore socket connection doesn't break when app backgrounded.)

if appstore review team find it, reject binary. have definite quote documentation why can't use it. also, if add background mode app voip or music player, app not such kind of application, can rejected.


Comments