Disable The IOS Device Idle Time Out In Your Delphi XE5 Firemonkey App

Delphi XE5 Firemonkey Sleep TimeoutIf you are doing any background tasks in your Delphi XE5 Firemonkey app on IOS you may run into the problem of your IOS device going to sleep and pausing your app. There are a few different terms for this like idle timer, wake timeout. sleep, idle timeout, etc. There is a simple IOS API call which will allow you to disable and enable the idle timeout. Malcolm Groves has a blog post which highlights how to access this API call within Delphi XE5 Firemonkey. The property is called idleTimerDisabled in the IOS SDK. It’s use is as simple as calling¬†setIdleTimerDisabled(True); from the UIApplication interface.¬†I used this API call to disable the idle timer when I was downloading a bunch of items from the web in a background queue. When my queue was complete I enabled the idle timer again.

Check out the full blog post from Malcolm and see his example source for idleTimerDisabled.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Disable The IOS Device Idle Time Out In Your Delphi XE5 Firemonkey App by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

2 Responses to Disable The IOS Device Idle Time Out In Your Delphi XE5 Firemonkey App

  1. Pingback: Polish Your Delphi XE5 Firemonkey Apps For IOS With These Twelve Tips | Delphi XE5 Firemonkey, Delphi Android, Delphi IOS

  2. Pingback: Polish Your Firemonkey Apps For IOS With These Twelve Tips | Firemonkey X

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE5 Firemonkey Excel Reader Writer
Read And Write Excel Files With Delphi XE5 Firemonkey On Android And IOS

TMS Software has released a new version of their TMS Flexcel for VCL & Firemonkey component suite. This component suite...

Close