forked from organicmaps/organicmaps-tmp
[iOS] fix universal links
This commit is contained in:
parent
b712e05377
commit
4092d7641d
2 changed files with 4 additions and 5 deletions
|
@ -552,9 +552,8 @@ using namespace osm_auth_ios;
|
|||
}
|
||||
|
||||
- (BOOL)application:(UIApplication *)application
|
||||
continueUserActivity:(NSUserActivity *)userActivity
|
||||
restorationHandler:(void (^)(NSArray * restorableObjects))restorationHandler
|
||||
{
|
||||
continueUserActivity:(NSUserActivity *)userActivity
|
||||
restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
|
||||
if ([userActivity.activityType isEqualToString:CSSearchableItemActionType])
|
||||
{
|
||||
NSString * searchStringKey = userActivity.userInfo[CSSearchableItemActivityIdentifier];
|
||||
|
@ -749,7 +748,8 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
|
|||
{
|
||||
m_sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey];
|
||||
|
||||
if ([self checkLaunchURL:url])
|
||||
if ([self checkLaunchURL:[url.host rangeOfString:@"dlink.maps.me"].location != NSNotFound
|
||||
? [self convertUniversalLink:url] : url])
|
||||
{
|
||||
[self handleURLs];
|
||||
return YES;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<string>development</string>
|
||||
<key>com.apple.developer.associated-domains</key>
|
||||
<array>
|
||||
<string>applinks:mapsme.onelink.me</string>
|
||||
<string>applinks:dlink.maps.me</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
|
Loading…
Add table
Reference in a new issue