【发布时间】:2018-10-25 07:13:46
【问题描述】:
Ionic social sharing plugin 不适用于 iOS。错误响应返回“不可用”。在 Android 上,它按预期工作。 我做错什么了吗?
// share functions parse accepts 'app' parameter
this.socialSharing.canShareVia(app, this.property.heading, '', '', this.property.link).then(res => {
this.socialSharing.shareVia(app, this.property.heading, '', '', this.property.link);
}).catch(res => {
this.gApp.hideLoading();
this.gApp.showAlert('error', res);
});
// app name is parsed from html
<a (click)="shareVia('facebook')">facebook</a>
...
<a (click)="shareVia('viber')">viber</a>
【问题讨论】:
标签: cordova typescript ionic-framework ionic3 cordova-plugins