[英]Ionic 2 Native Social Share error
嗨,我正在尝试为我的Ionic 2应用程序设置原生的Twitter分享。 我已经正确安装了cordova插件,将它们包含在我的app模块中,以及我正在使用的页面组件,我的电子邮件共享功能正常工作,表明cordova和社交共享设置正确。 但是,当我尝试使用社交分享twitter时
this.socialSharing.shareViaTwitter("this is the message", "assets/images/port.jpg","https://futuresync.co.uk").then(()=>{
//Sharing twitter successful
console.log("Twitter share success");
}).catch((error)=>{
//Sharing twitter unsuccessful
console.log("Twitter sharing unsuccessful");
console.log(error);
});
我收到这个错误。
例外:未捕获(承诺):com.google.android.apps.maps,com.google.android.apps.messaging
任何帮助都会很棒:)
它不适用于浏览器。 在使用ionic build android
apk后,在实际的Android设备上测试它,它应该工作正常(给定其他一切工作)。
另外,检查AndroidManifest.xml和config.xml中的权限和设置是否正确。 像AndroidManifest.xml-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
在这里查看这些内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.