Skip to content

Commit

Permalink
[example][ios] Keep screen on (#1572)
Browse files Browse the repository at this point in the history
On iOS low power mode, the system force keeps the screen on for 30s
only, we keep the screen on to help internal testing.
  • Loading branch information
littleGnAl authored Feb 23, 2024
1 parent 5c76335 commit 9449dd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/ios/Runner/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ @implementation AppDelegate

- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// On low power mode, the system force keep the screen on for 30s only,
// we keep the screen on to help internal testing.
[application setIdleTimerDisabled: YES];

FlutterViewController* controller = (FlutterViewController*) self.window.rootViewController;

FlutterMethodChannel* screensharingIOSChannel = [FlutterMethodChannel
Expand Down

0 comments on commit 9449dd2

Please sign in to comment.