Tuyenp
Tuyenp

Reputation: 81

How to run background execution forever on iOS

I want to run my own task which is a timer thread in backgroud mode. I really want users can't make change or make cheat time in my app.

I have searched very much but couldn't find a reliability solution.

Anyone suggest me?

Upvotes: 0

Views: 1772

Answers (1)

Scott Thompson
Scott Thompson

Reputation: 23701

You cannot do what you want to do. There is no way to run a background task on the iOS that is always running. Doing so would be very energy efficient and would waste battery life. As a result, Apple keeps tight control over when and how applications can run background tasks and they WILL schedule your work against other applications and how much power you are using.

Upvotes: 2

Related Questions