summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-10-05 11:53:47 -0700
committerJason Wray <jason@mapbox.com>2016-10-25 22:40:21 -0700
commit392450786d3bd66f426ae55c115bcbf00115dff6 (patch)
tree6a0802b4bef76921f81971d9cd2c29883a0393f0
parent32be7b6cc389af6d4a83b9795bd0c7ceb2edd228 (diff)
downloadqtlocation-mapboxgl-392450786d3bd66f426ae55c115bcbf00115dff6.tar.gz
[ios] Observer that app did become active instead of will foreground (#6600)
-rw-r--r--platform/ios/src/MGLMapboxEvents.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m
index 4d62e9d724..d86114d016 100644
--- a/platform/ios/src/MGLMapboxEvents.m
+++ b/platform/ios/src/MGLMapboxEvents.m
@@ -209,7 +209,7 @@ const NSTimeInterval MGLFlushInterval = 180;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(userDefaultsDidChange:) name:NSUserDefaultsDidChangeNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pauseOrResumeMetricsCollectionIfRequired) name:UIApplicationDidEnterBackgroundNotification object:nil];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pauseOrResumeMetricsCollectionIfRequired) name:UIApplicationWillEnterForegroundNotification object:nil];
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pauseOrResumeMetricsCollectionIfRequired) name:UIApplicationDidBecomeActiveNotification object:nil];
// Watch for Low Power Mode change events
if (&NSProcessInfoPowerStateDidChangeNotification != NULL) {