From 392450786d3bd66f426ae55c115bcbf00115dff6 Mon Sep 17 00:00:00 2001 From: Jesse Bounds Date: Wed, 5 Oct 2016 11:53:47 -0700 Subject: [PATCH] [ios] Observer that app did become active instead of will foreground (#6600) --- platform/ios/src/MGLMapboxEvents.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m index 4d62e9d72..d86114d01 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) {