summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-10-05 11:53:47 -0700
committerGitHub <noreply@github.com>2016-10-05 11:53:47 -0700
commitdab8ee93c8749816493162cbefc6cb81f89b3566 (patch)
tree94db631b8a23e7aeca26e14062f75624e5192f70
parent6877e3efe73fb6e103c2635f1e4b1c1866b17d5c (diff)
downloadqtlocation-mapboxgl-dab8ee93c8749816493162cbefc6cb81f89b3566.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 53b917f701..15b78b65ae 100644
--- a/platform/ios/src/MGLMapboxEvents.m
+++ b/platform/ios/src/MGLMapboxEvents.m
@@ -208,7 +208,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) {