Webpage to load in a browser to continue the activity.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
When no suitable app is installed on a resuming device and the
webpage property is set, the specified webpage is loaded and the user activity is continued in a web browser.
If your activity's content can be restored on the web or you support Safari universal links, be sure to set this property so that the system can resume the activity in Safari or your app. After setting the
webpage property on an activity for which
true, also set the
required property, using the keys of the
user dictionary that must be stored. If you don’t also set the
required property, the
user dictionary will be empty when the activity is restored.
true for this activity and you’re using both
NSUser and web markup to index the same item, set
webpage to the relevant URL on your website to avoid showing duplicate results in Spotlight. The
NSUser API does not perform any modifications to the URL that you specify. URL components, such as the query string and the fragment identifier, are used for matching the item against pages that are indexed by Applebot.