0.0.2 • Published 4 years ago

dplink v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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 versionbrandseriesbrowserauto openclick
8.1.0、10HuaweiHonor 8c、p20Any✔️✔️
10、9XiaomiMI 9、Redmi 6 proMiuiBrowser、MQQBrowser✖️✔️
9XiaomiRedmi 6 proBaiduBoxapp✔️✔️
7.1.2Vivovivox9Default、MQQBrowser✖️✔️
7.1.2Vivovivox9SougouMobileBrowser✔️✔️
10SamsungAny✖️✔️
10SamsungQuark✔️✔️

IOS

Reference