Socket
Socket
Sign inDemoInstall

js-open-app

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    js-open-app

share page open app(h5分享页面打开app)


Version published
Maintainers
1
Install size
11.8 kB
Created

Readme

Source

js-open-app

h5分享页面打开本地存在的app, 当本地app不存在的时候则跳转到响应的下载页面.对于安卓手机跳转到应用宝下载页面,ios手机则跳转到应用市场

使用

直接引用:下载/dist/bundle.js到工程中即可调用h5OpenAppControl.controlInit({...参数...})方法完成跳转

<script src="dist/bundle.js"></script>

npm: 通过npm引入然后直接调用controlInit({...参数...})完成跳转

import {controlInit} from 'js-open-app'

参数属性类型描述
buttondom按钮
androidLinkstring安卓的打开链接
androidDownloadUrlstring安卓的下载链接,开启应用宝的时候这个配置没有用
androidYybBoolean android 是否开启应用宝下载
iosLinkstringios 打开链接
iosDownloadUrlstringios 的下载链接
iosUniversalLinkEnabledBoolean是否开启 Universal Link
iosYybBooleanios 是否开启应用宝下载
yybDownloadUrlstring应用宝下载链接
autoRedirectToDownloadUrlBoolean是否如果没有打开app则自动跳转到下载页面

Keywords

FAQs

Last updated on 20 Jun 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc