[英]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.