Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓系统华为浏览器及百度浏览器不支持、IOS除了UC一切正常 #88

Open
gangtieshuai opened this issue Mar 4, 2021 · 0 comments

Comments

@gangtieshuai
Copy link

作者大大看一下我这的情况
场景:
安卓
华为浏览器不支持
百度浏览器没反应
UC浏览器没有正确显示,title显示的是‘给你分享一个网页’,icon显示一个地球图标,desc显示‘点击查看’,点进去并不是目标网页

IOS
safari、chrome、baidu 显示title的地方显示的是desc,显示desc的地方确显示link,icon也是没有显示的

只有IOS的UC完美达到目的

以下我的代码
const nativeshareFuc = (shareDataObj) => { console.log(shareDataObj) if (!isNull(signData)) { nativeShare.setConfig({ wechatConfig: { appId: wechatId, timestamp: signData.timestamp, nonceStr: signData.noncestr, signature: signData.signature } }) } nativeShare.setShareData({ icon: shareDataObj.imgUrl, link: shareDataObj.link, title: shareDataObj.title, desc: shareDataObj.desc, success: function () { console.log('success') }, fail: function () { console.log('fail') } }) try { nativeShare.call() } catch (err) { console.log(err) alert('当前浏览器不支持自动调用分享,请找到内置的分享进行分享') } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant