[ios] Observer that app did become active instead of will foreground (#6600)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user