Universal Links in iOS9 use the Handoff mechanism to look at a link in an app instead of the browser: Whenever a Universal Link is clicked, iOS activates the corresponding app and calls -application:continueUserActivity:restorationHandler
with a user activity containing the Universal Link's URL (see Apple guide on Universal Links).
I'd like to trigger this mechanism manually, i.e. creating an NSUserActivity
instance with a webpageURL
property and dispatching it to be handled by the current app's -application:continueUserActivity:restorationHandler
. Is there a way to achieve this?
At the moment I'm just calling -application:continueUserActivity:restorationHandler
directly, but this feels wrong and I'd like to implement it in a more proper way.