Skip to content

Enable battery monitoring - #432

Merged
bsudekum merged 2 commits into
masterfrom
battery-monitoring
Jul 26, 2017
Merged

bsudekum merged 2 commits into
masterfrom
battery-monitoring

Conversation

@bsudekum

Copy link
Copy Markdown
Contributor

The fatal we were seeing before was most likely fixed with #399

Closes: #371

/cc @1ec5 @ericrwolfe

events.initialize(withAccessToken: mapboxAccessToken, userAgentBase: "MapboxEventsNavigationiOS", hostSDKVersion: String(describing: Bundle(for: RouteController.self).object(forInfoDictionaryKey: "CFBundleShortVersionString")!))
events.disableLocationMetrics()
events.sendTurnstileEvent()
UIDevice.current.isBatteryMonitoringEnabled = true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also stop monitoring? Perhaps in init and deinit of RouteController or NavigationLocationManager?

@bsudekum
bsudekum merged commit 08836f7 into master Jul 26, 2017
@bsudekum
bsudekum deleted the battery-monitoring branch July 26, 2017 19:34
@ericrwolfe ericrwolfe modified the milestone: v0.6.0-2 Jul 27, 2017
mappy-mobile pushed a commit to Mappy/mapbox-navigation-ios that referenced this pull request Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable battery monitoring

3 participants