微信浏览器不支持下载APP以及APK文件的 解决方案
2019-03-08 18:07
405 查看
需求:在微信h5页面中下载第三方app —— 安卓, 直接下载apk文件包;iphone,跳转AppStore
1、识别手机类型.1
/* 判断用户手机为安卓还是iphone */
checkPhone () {
let self = this
let agent = (navigator.userAgent || navigator.vendor || window.opera)
if (agent != null) {
let agentName = agent.toLowerCase()
if (/android/i.test(agentName)) {
self.isAndroid = true
} else if (/iphone/i.test(agentName)) {
self.isIOS = true
相关文章推荐
- 微信浏览器不支持下载APP以及APK文件的 解决方案
- 微信环境中不支持APP(APK)文件下载的解决方案---跳转到手机系统浏览器打开下载链接
- 微信浏览器无法下载APP以及APK文件的解决方案
- 微信浏览器无法下载APP以及APK文件的 解决方案
- 安卓以及苹果新版微信不支持下载APP(APK)文件的解决方案
- 微信浏览器不支持下载APK(APP)软件的最新解决方案
- 怎么让微信下载APK文件包,微信内置浏览器无法打开APP下载链接的解决方案
- 微信内浏览器不支持下载APK文件的解决方案 微信中点击链接调用外部浏览器打开
- 微信内置浏览器不支持下载APP 微信内下载APK的最新解决方案
- 微信环境中扫描二维码下载APP(APK)文件的解决方案-自动跳转到手机默认浏览器(AppStore)打开
- 怎么让微信下载APK文件包,微信内置浏览器无法打开APP下载链接的解决方案
- 微信内浏览器不支持下载APP文件的解决方案
- 微信内浏览器不支持下载APP文件的解决方案
- 微信内浏览器不支持下载APK文件的解决方案 微信中点击链接调用外部浏览器打开
- 微信浏览器禁止下载APK文件 微信扫描二维码 下载app的方法
- 微信内置浏览器不支持下载文件或应用解决方案——李帅醒博客
- 微信浏览器不支持下载文件或应用解决方案--跳转到默认浏览器打开
- 微信内不支持下载APP 微信内下载APK的解决方案
- 微信内置浏览器不支持下载的解决方案 微信点击链接直接下载app安装包功能实现方式
- 微信浏览器不支持下载文件或应用解决方案--跳转到默认浏览器打开