summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2019-01-24 12:38:14 -0500
committerJoe George <joe@zeroc.com>2019-01-24 12:39:12 -0500
commitc62ca600d810f626bcd63e98178eb6373e40803e (patch)
tree64eb4409a34ca62b3e6df55699be10131f91f70f /cpp
parentFix typo (diff)
downloadice-c62ca600d810f626bcd63e98178eb6373e40803e.tar.bz2
ice-c62ca600d810f626bcd63e98178eb6373e40803e.tar.xz
ice-c62ca600d810f626bcd63e98178eb6373e40803e.zip
Disable idle timer on iOS controller app
Fixes #340
Diffstat (limited to 'cpp')
-rw-r--r--cpp/test/ios/controller/Classes/AppDelegate.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/test/ios/controller/Classes/AppDelegate.m b/cpp/test/ios/controller/Classes/AppDelegate.m
index cc1773600fa..afff900c6b3 100644
--- a/cpp/test/ios/controller/Classes/AppDelegate.m
+++ b/cpp/test/ios/controller/Classes/AppDelegate.m
@@ -12,6 +12,10 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
+
+ // Ensure device does not become idle
+ [[UIApplication sharedApplication] setIdleTimerDisabled:YES];
+
return YES;
}