dlt.navigateToDeeplink
Introduction
Open external applications through deeplink, this API is only open internally, and need to apply actively.
Parameters
Object object
Property | Type | Default Value | Required | Description |
---|---|---|---|---|
deeplink | string | Yes | The deeplink to navigate to. | |
success | function | No | Callback function for a successful API call. | |
fail | function | No | Callback function for a failed API call. | |
complete | function | No | Callback function that is called when the API call is complete (whether successful or not). |
Deeplink Examples:
- Open the SMS page with a specific phone number and message content:
deeplink: 'smsto:10086:hhhhhhh';
- Open the dialer with a specific phone number:
deeplink: 'tel:10086';
- Open a web URL in the default web browser:
deeplink: 'https://www.baidu.com';
- Launch other external applications using the intent URI scheme:
// Open Google Play
deeplink: 'https://play.google.com/store/apps/details';
// Open the JD app
deeplink: 'openapp.jdmobile://virtual';
Example Code
dlt.navigateToDeeplink({
deeplink: 'https://www.baidu.com',
});