From e0d98091edb74ddd772be83641184d3754a125f7 Mon Sep 17 00:00:00 2001 From: mamadnazar Date: Thu, 6 Mar 2025 19:55:08 +0500 Subject: [PATCH] [ios] fix: When user is in the map and gets out (without killing app) then returns back it shows main page instead of map --- iphone/Maps/Classes/MapsAppDelegate.mm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index e03915ab2a..278c96ee83 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -126,6 +126,12 @@ using namespace osm_auth_ios; [[DeepLinkHandler shared] applicationDidFinishLaunching:launchOptions]; // application:openUrl:options is called later for deep links if YES is returned. + + dispatch_async(dispatch_get_main_queue(), ^{ + [self handleNavigationForAppStartup]; + [self moveToDushanbeIfNotInTjk]; + }); + return YES; } @@ -211,11 +217,6 @@ using namespace osm_auth_ios; LOG(LINFO, ("applicationDidBecomeActive - begin")); auto & f = GetFramework(); - [self handleNavigationForAppStartup]; - - [self moveToDushanbeIfNotInTjk]; - - f.EnterForeground(); [self.mapViewController onGetFocus:YES]; f.SetRenderingEnabled();