Releases: j3k0/cordova-plugin-purchase
v13.12.0
(googleplay) Upgrade to Google Play Billing library 7.1.1
- Improved thread safety related to connection status and management.
- Added new testing response codes to BillingResult
https://developer.android.com/google/play/billing/release-notes
(all) Fix issue with large number of transactions
In particular, when calling "restorePurchases" in Apple and the user has more than 100 transactions.
- 5e2ad5b Delay processing of updated receipts
- 71a071c Do not retrigger "approved" for a given transaction until a minute has elapsed
(appstore) Fix issue with event handling when autoFinish is set
Issue #1526, approved never fires after initiating the purchase when autoFinish was set.
(all) Fix receipt without a transaction
Issue #1526
Minor changes
Logs and documentation
Full Changelog: v13.11.1...v13.12.0
v13.11.1
v13.11.0
Upgrade to Google Play Billing library 7.0.0
Upgraded to Billing Library 7, as version 5 is being discontinued in a few months.
This update is backward compatible, the main visible change is the ProrationMode
being renamed ReplacementMode
. The plugin kept the old enumerations and fields for compatibility, so no change is required (except to get rid of some new deprecation warnings).
v13.10.4
v13.10.3
v13.10.2
v13.10.1
Fix store.initialize() when passed a single value
store.initialize()
was supposed to work when passed a single value instead of an array. It turns out there was a regression, fixed with this release.
Add store.when().initiated(transaction)
Allows monitoring INITIATED
(new) transactions.
store.when().initiated(transaction => {
// a new transaction has been initiated.
});
v13.10.0
(googleplay) Add "isConsumed" to consumed transactions
Local Google Play transaction now contain isConsumed
, which is the same as isAcknowledged
, but only set for consumable products.
Make it easier to debug callback calls
It's now possible to add a name to callbacks registered with "store.when()"
When callbacks are triggered, the reason is logged to the console.
Prevent instanciating CdvPurchase.store twice
So when ionic packages the plugin with the app code, no double instantiations of the plugin is performed.
v13.9.0
(appstore) store.restorePurchases() return potential errors
The return value for store.restorePurchases()
has been changed from Promise<void>
to Promise<IError|undefined>
.
You can now inspect the value returned to figure out if processing complete with or without errors.
(appstore) Fix forceReceiptReload
In certain conditions (calls to order
and restorePurchases
), the AppStore adapter wants to force a refresh of the application receipt. This fix prevents it from returning the version cached in memory.
v13.8.6
Add CdvPurchase.Utils.platformName()
Convert CdvPurchase.Platform
enum values to a more user friendly version.
Usage:
console.log(CdvPurchase.Utils.platformName(myTransaction.platform));
// returns "App Store" or "Google Play" or "Braintree", ....
Increase expiry monitor's grace period on Google Play
The 10 seconds wait before refreshing an expired subscription on Google Play wasn't enough: increased to 30 seconds.
Ref #1468