0.0.2 • Published 6 years ago
dplink v0.0.2
English | 简体中文
deeplink
Mobile deep links for the web deeplink is designed to add deep links to the web in an easy and stable way.
Mobile deep links are links that refer to apps instead of another web page. Opening things in apps can vastly improve a user’s experience.
Install
npm install dplink
// or
yarn add dplinkUsage
import Dplink from 'dplink'
const dplink = new Dplink({
schemeLink:'myapp://',
universalLink:'https://u.myhost.com/',
downloadLink:{
ios:'https://apps.apple.com/us/app/appname/idxxxxxxx?ign-mpt=uo%3D4',
android:'https://download.myhost.com/app.apk'
},
autoOpen:true,
success:function(){
},
fail:function(){
},
timeout:500,
way:'auto',// default: auto; iframe|location|lin
})
dplink.bind('#openapp');
dplink.open()Supported Info
Android
| os version | brand | series | browser | auto open | click |
|---|---|---|---|---|---|
| 8.1.0、10 | Huawei | Honor 8c、p20 | Any | ✔️ | ✔️ |
| 10、9 | Xiaomi | MI 9、Redmi 6 pro | MiuiBrowser、MQQBrowser | ✖️ | ✔️ |
| 9 | Xiaomi | Redmi 6 pro | BaiduBoxapp | ✔️ | ✔️ |
| 7.1.2 | Vivo | vivox9 | Default、MQQBrowser | ✖️ | ✔️ |
| 7.1.2 | Vivo | vivox9 | SougouMobileBrowser | ✔️ | ✔️ |
| 10 | Samsung | Any | ✖️ | ✔️ | |
| 10 | Samsung | Quark | ✔️ | ✔️ |
IOS
Reference
- Android App Links & Intents
- iOS Universal Links