Asks the system to open a URL on behalf of the currently running app extension.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The URL to open.
A block to be called when the URL has opened.
The block takes the following parameter:
A Boolean value that indicates whether the open operation was successful.
Each extension point determines whether to support this method, or under which conditions to support this method. In iOS, the Today and iMessage app extension points support this method. An iMessage app extension can use this method only to open its parent app, and only if the parent app is shown on the iOS home screen.