dplink

0.0.2 • Public • Published

English | 简体中文

deeplink

NPM version

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 dplink

Usage

 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

Package Sidebar

Install

npm i dplink

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

87.7 kB

Total Files

17

Last publish

Collaborators

  • e23jiang