cordova-plugin-wechat icon indicating copy to clipboard operation
cordova-plugin-wechat copied to clipboard

分享朋友圈功能,一套代码,iOS能分享成功,Android报错 json error

Open 09133792 opened this issue 6 years ago • 2 comments

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 avatar Sep 16 '19 08:09 09133792

路径里是否包含中文?

jasonz1987 avatar Sep 20 '19 02:09 jasonz1987

@09133792

先试试把描述字段填上

description: ''

如果还不行,应该是apk签名和开放平台提交的不一样吧

crapthings avatar Mar 05 '20 11:03 crapthings