0

I am trying to open the app using deeplink and using that deeplink I want to open a specified view.

Currently, I successfuly open the app using deeplink and go to the specified view when app is on background. But I cannot go to sepcified view using deeplink when app is not in memory. (still app is open)

This is the code I use.

- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts {
    for(UIOpenURLContext* element in URLContexts){
        NSLog(@"URL ::::::::: %@",element.URL);
        NSURL *url = element.URL;
    }
}

It seems openURLContexts not call when App is not in memory -> use deeplink to open the app. Is there a way call openURLContexts or there is another method to integrate?

matt
  • 515,959
  • 87
  • 875
  • 1,141
Peterworks
  • 435
  • 4
  • 13

0 Answers0