ios - iPhone indefinite background exectuion Xcode mystery -


i writing app personal use needs continuous background execution. apple tries make difficult, found declaring app uses background location updates , creating background task (with no content, blank task) allows app run indefinitely when run project xcode. not understand why works. noticed after 3 minutes, when presumably task supposed terminated, following error:

can't endbackgroundtask: no background task exists identifier 174256fe0, or may have been ended. break in uiapplicationendbackgroundtaskerror() debug.

after message, app continues run in background normally. so, seems indefinite execution bit of exploit, i'm fine because want make app work.

however, when run app phone (i.e. not pressing run button in xcode project), background execution seems stop after 3 minutes. problem, , can't seem figure out why execution continues in 1 case not in other. difference between running app , running through xcode? there simpler or better way indefinite background execution i'm looking given i'm not trying app published app store?

since you're not submitting store - why not try this:

enable app background audio services. then, play silent audio file in background on constant loop?


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -