From 8fd5aba5659d89f99bd54ef4553e44a38e66a5ee Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Thu, 14 Feb 2019 11:39:01 +0300 Subject: [PATCH] [ios][power manager] battery level tracking on startup is fixed --- platform/platform_ios.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/platform_ios.mm b/platform/platform_ios.mm index e88d565870..f532c5ed96 100644 --- a/platform/platform_ios.mm +++ b/platform/platform_ios.mm @@ -68,6 +68,8 @@ Platform::Platform() m_guiThread = make_unique(); UIDevice * device = UIDevice.currentDevice; + device.batteryMonitoringEnabled = YES; + NSLog(@"Device: %@, SystemName: %@, SystemVersion: %@", device.model, device.systemName, device.systemVersion); }