Universal Link opens my application, but does not call the application: continueUserActivity: restoreHandler

I am trying to implement Universal Links in my application. I read a lot of tutorials and followed this letter: How to support Universal Links on the application server and install iOS for it?

When I click the universal link, my application opens successfully, but application:continueUserActivity:restorationHandlerit is not called in my AppDelegate.m file, so I canโ€™t direct it to a specific page in the application.

My apple-app-site-associationfile is on https and for the paths I put [ "*", "/" ]. I checked the triple control over the application and the application identifier, confirmed that AssociatedDomains is included both on the developer's website and in my target audience. In the Associated Domains section, I put my root domain as well as the second entry added by *. to handle all possible subdomains. I am testing on a real device, not a simulator.

-(BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler {
    ALog(@"Did I get here?");
}

Can someone give advice on what I should look at to find out why application:continueUserActivity:restorationHandlerit is not being called?

Update:

I used the Apple validation tool https://search.developer.apple.com/appsearch-validation-tool and gave this result:

Application Link

Action required

Universal Links. , .

, , . 48 .

, . , , , , , .

+4

Source: https://habr.com/ru/post/1650598/


All Articles