-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Billing Library 6.0.1 #4
base: master
Are you sure you want to change the base?
Conversation
It's required for Android 14. (Although 5.0.0 worked fine on my test device in a debug build. Maybe it's a restriction enforced by Google Play.) It's largely backwards-compatible. I didn't find anything in https://developer.android.com/google/play/billing/release-notes that would break this plugin. So go for it.
Unfortunately v5.0 is not accepted in google play store. When I update to 5.2.1 or 6.0.1 I got error like below |
Are you sure this is caused by the upgrade? The above error message would also be a symptom of overlapping JavaScript calls. Eg. if you do: inAppPurchase.getProducts([…])
inAppPurchase.buy(…) This would attempt to start the await inAppPurchase.getProducts([…])
await inAppPurchase.buy(…)
… |
Sorry I forgot about it, after many tests. google.payments Helper D onPDR item: ProductDetails{jsonString='{"productId":"full","type":"inapp","title":"Unlock full version","name":"Unlock full version","description":"Unlock full version to complete rest of levels","localizedIn":["en-US"],"skuDetailsToken":"secret","oneTimePurchaseOfferDetails":{"priceAmountMicros":19990000,"priceCurrencyCode":"EUR","formattedPrice":"EUR 19.99"}}', parsedJson={"productId":"full","type":"inapp","title":"Unlock full version","name":"Unlock full version","description":"Unlock full version to complete rest of levels","localizedIn":["en-US"],"skuDetailsToken":"secret","oneTimePurchaseOfferDetails":{"priceAmountMicros":19990000,"priceCurrencyCode":"EUR","formattedPrice":"EUR 19.99"}}, productId='full', productType='inapp', title='Unlock full version', productDetailsToken='secret', subscriptionOfferDetails=null} google.payments Helper D onPDR isd origin: IabSkuDetails mSku: full mType: inapp mPrice: EUR 19.99 mPriceCurrency: EUR mPriceAsDecimal: 19.99 mPriceRaw: 19.99 mTitle: Unlock full version mDescription: Unlock full version to complete rest of levels google.payments Helper D onPDR: [IabSkuDetails mSku: full mType: inapp mPrice: EUR 19.99 mPriceCurrency: EUR mPriceAsDecimal: 19.99 mPriceRaw: 19.99 mTitle: Unlock full version mDescription: Unlock full version to complete rest of levels google.payments Helper D oqapf onAllProcessed: true true |
I'm sorry, I don't know what is wrong based on this limited amount of information. |
@rmoehm take a look at https://github.com/cozycodegh/cordova-plugin-inapppurchases |
Nice! I think I'll stick with the original as long as it's working for me. |
It's required for Android 14. (Although 5.0.0 worked fine on my test device in a debug build. Maybe it's a restriction enforced by Google Play.) It's largely backwards-compatible. I didn't find anything in https://developer.android.com/google/play/billing/release-notes that would break this plugin. So go for it.