我已經cordova-plugin-email-composer在我的專案中實作了它,在此之前它運行良好,但在升級到[email protected]應用程式后當觸發this.emailcomposer.open(email).
只有 android 11 崩潰,而 android 8 作業正常。當我改回 時[email protected],android 8 和 11 都可以正常作業。
https://github.com/katzer/cordova-plugin-email-composer/issues/350
我發現有人有同樣的問題。所以我想知道是一個錯誤還是我們需要在上面寫點東西config.xml
uj5u.com熱心網友回復:
我找到了 ionic email composer 崩潰問題的解決方案。在下面的 URL 鏈接中,有關于 android 11 更改的檔案。
https://developer.android.com/about/versions/11/behavior-changes-all#share-content-uris
需要在android下的config.xml中添加如下代碼
<config-file parent="/manifest" target="AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.FLAG_GRANT_READ_URI_PERMISSION" />
</config-file>
<config-file parent="/manifest/queries" target="AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android">
<package android:name="com.google.android.gm" />
<package android:name="com.microsoft.office.outlook" />
<package android:name="com.yahoo.mobile.client.android.mail" />
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
</config-file>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/398189.html
