orthehelper
orthehelper

Reputation: 4079

App Background issue While in Background

My app is checking some algorithm in the background, after something like 30 minutes my application seems to be like close (iphone turn to sleep mode i think). I need the app to run this algorithm as long as it is in the background.

Do you have any idea how to set this 20 minutes timer to recount by some action? maybe NSRunloop or something else?

Upvotes: 0

Views: 271

Answers (1)

hotpaw2
hotpaw2

Reputation: 70683

You can't reset this timer or continue to run in the background on a stock OS iPhone (except for a limited amount of time, or if your is legitimately of 3 types, VoIP, audio or GPS).

The user can reset this timer by bringing your app to the foreground, perhaps after a notification or something.

Upvotes: 1

Related Questions