diff options
author | Aleksey Belouosv <aleksey@maps.me> | 2019-04-25 18:53:48 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-05-08 16:49:33 +0300 |
commit | 0db85d14ba75cccd7551c042969b5fc68a54baf8 (patch) | |
tree | 9b4975b17f4307fbcd794ca48fa300fa27429f2b /iphone | |
parent | ae9f88c5471c1b459cba888d559a72582717779f (diff) |
[iOS] fix crash on first launch when installed by deeplink
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/MapsAppDelegate.mm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index 6cbcaf7790..cbf46ce090 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -811,13 +811,17 @@ continueUserActivity:(NSUserActivity *)userActivity NSString *deeplink = installData[@"af_r"]; NSURL *deeplinkUrl = [NSURL URLWithString:deeplink]; if (deeplinkUrl != nil) { - [[DeepLinkHandler shared] applicationDidReceiveUniversalLink:deeplinkUrl]; + dispatch_async(dispatch_get_main_queue(), ^{ + [[DeepLinkHandler shared] applicationDidReceiveUniversalLink:deeplinkUrl]; + }); } } } -(void)onConversionDataRequestFailure:(NSError *) error { - [Crashlytics.sharedInstance recordError:error]; + dispatch_async(dispatch_get_main_queue(), ^{ + [Crashlytics.sharedInstance recordError:error]; + }); } @end |