We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
作者大大看一下我这的情况 场景: 安卓 华为浏览器不支持 百度浏览器没反应 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('当前浏览器不支持自动调用分享,请找到内置的分享进行分享') } }
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('当前浏览器不支持自动调用分享,请找到内置的分享进行分享') } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
作者大大看一下我这的情况
场景:
安卓
华为浏览器不支持
百度浏览器没反应
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('当前浏览器不支持自动调用分享,请找到内置的分享进行分享') } }
The text was updated successfully, but these errors were encountered: