From 3631e14dd3936b51e94c98b76df6e0823d448777 Mon Sep 17 00:00:00 2001 From: Brent Whitman Date: Fri, 11 Sep 2015 14:32:26 -0700 Subject: [PATCH] Fix regression on iOS 8, where map would stop updating if device was rotated while the app was in the background --- platform/ios/MGLMapView.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index b637f899f..de55ebef5 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -367,6 +367,7 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration) [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(willTerminate) name:UIApplicationWillTerminateNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sleepGL:) name:UIApplicationDidEnterBackgroundNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(wakeGL:) name:UIApplicationWillEnterForegroundNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(wakeGL:) name:UIApplicationDidBecomeActiveNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceiveMemoryWarning) name:UIApplicationDidReceiveMemoryWarningNotification object:nil]; // set initial position