Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2019-02-14 11:39:01 +0300
committerAleksey Belousov <beloal@users.noreply.github.com>2019-02-14 16:03:36 +0300
commit8fd5aba5659d89f99bd54ef4553e44a38e66a5ee (patch)
tree7e24a972cec6d807caee07b1966ea8a59fd95baf /platform
parent6107dd24876fb00ad50d73d18d8de93f65996f39 (diff)
[ios][power manager] battery level tracking on startup is fixed
Diffstat (limited to 'platform')
-rw-r--r--platform/platform_ios.mm2
1 files changed, 2 insertions, 0 deletions
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<platform::GuiThread>();
UIDevice * device = UIDevice.currentDevice;
+ device.batteryMonitoringEnabled = YES;
+
NSLog(@"Device: %@, SystemName: %@, SystemVersion: %@", device.model, device.systemName,
device.systemVersion);
}