How to check which application the user came from after clicking the (Linked Domains) link of my application?

So, basically I am developing an application (iOS 9) and setting up Associated Domains , which allows me to open the application directly when the user removes the link for my application.

After you click the link and my application opens, a new return button will appear in the status bar, which allows the user to return to the previous application, for example:
enter image description here

I will catch this action (launch by reference) using:

 - (BOOL)application:(nonnull UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray * __nullable))restorationHandler { if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) { NSURL *webURL = userActivity.webpageURL; NSLog(@"%@", webURL.absoluteString); } return YES; } 

Is there a way to access this information (previous application, messages in this case) using NSUserActivity or something similar?

+8
ios ios9 back-button deep-linking
source share
1 answer

There is nothing in the API that allows you to do this the way you think, and this is not possible for the Messages application. Links to applications is one way. Starting with iOS 9, Apple has provided only a way to return to the previous application, that's all.

+2
source share

All Articles