[英]Correct permissions for Android in-app puchases
嘗試在 Google Play Console 中創建訂閱時,我收到一條消息To add in-app products, you need to add the BILLING permission to your APK
,我相信我已經完成了。
我已將以下內容添加到我的 config.xml 中:
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="com.android.vending.BILLING" />
</edit-config>
我已經安裝了 in-app-purchase-2 插件( https://ionicframework.com/docs/native/in-app-purchase-2 )並添加了此處提到的計費密鑰: https://github .com/j3k0/cordova-plugin-purchase/wiki/Setup-for-Android-Google-Play#add-android-billing-key但 google play 控制台仍然給出錯誤。
當我在 App Bundle Explorer(在 Google Play Console 中)查看上傳 APK 時,我可以看到權限中列出了com.android.vending.BILLING
(下附圖片)。 這讓我相信我已經正確地授予了權限。 但是,列表中的其他權限沒有com.android.vending
前綴。 相反,他們有android.permission
但我還沒有看到任何cordova
文檔可以使用除com.android.vending
之外的任何東西。
我該如何解決這個問題?
我正在使用帶有cordova-android ^9.1.0的Ionic 5
我執行了以下任務,問題已自行解決:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.