HomeDocs
Skip to main content

dlt.navigateToDeeplink

Introduction​

Open external applications through deeplink, this API is only open internally, and need to apply actively.

Parameters​

Object object​

PropertyTypeDefault ValueRequiredDescription
deeplinkstringYesThe deeplink to navigate to.
successfunctionNoCallback function for a successful API call.
failfunctionNoCallback function for a failed API call.
completefunctionNoCallback function that is called when the API call is complete (whether successful or not).
  1. Open the SMS page with a specific phone number and message content:
deeplink: 'smsto:10086:hhhhhhh';
  1. Open the dialer with a specific phone number:
deeplink: 'tel:10086';
  1. Open a web URL in the default web browser:
deeplink: 'https://www.baidu.com';
  1. 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',
});
Privacy agreementDeveloper agreementcontact us: developer_private.mi@dlightek.com © 2024 MiniApp. All Rights Reserved.