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:

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?
ios ios9 back-button deep-linking
Pedro vieira
source share