The Open URL API enables the Hybrid Container to open specific URLs on a device and react to them. It is possible to invoke URLs directly from one app to trigger another app to automatically launch in the foreground. By calling the API's methods, you can pass authentication information and metadata between apps. Metadata can be used to perform a desired action in the target app. A URL address can also be presented on a web page, delivered in an e-mail, or in an instant message.
To access the OpenURL
object, use the window.launchbox.Container.OpenURL
reference.
Name | Description | Return type |
---|---|---|
canOpen | This method verifies whether a given URL scheme can be opened in any native app installed on the device. |
promise |
open | This method opens a native app installed on the device, using a registered URL scheme. |
promise |
onOpenURL | This is an observer event. Add it to the |
undefined |