cordova-plugin-wechat
cordova-plugin-wechat copied to clipboard
分享朋友圈功能,一套代码,iOS能分享成功,Android报错 json error
wxShareToTimeLine(h5Url: string) { this.messageService.loading(''); console.log('准备分享朋友圈-----地址:', h5Url); console.log('title', this.articleSummary['title']); console.log('thumbUrl', this.articleSummary['thumbUrl']); this.wechat.share({ message: { title: this.articleSummary['title'], thumb: this.articleSummary['thumbUrl'], media: { type: 7, webpageUrl: h5Url } }, scene: 1 }).then(() => { this.messageService.info('分享成功'); console.log('分享成功-----'); this.messageService.hide(); }).catch(error => { this.messageService.info('分享失败'); console.log('分享失败:', error); this.messageService.hide(); }); }
路径里是否包含中文?
@09133792
先试试把描述字段填上
description: ''
如果还不行,应该是apk签名和开放平台提交的不一样吧