Releases: j3k0/cordova-plugin-purchase
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
v13.8.5
Fixes for Apple AppStore's introductory periods and
subscription renewals.
Load products and receipts in parallel on Apple
This solves the issue with processing the eligibility of
introductory periods.
Increase grace period for Apple subscription before refresh
After observing that Apple sometime needs more than a
minute before the API returns the subscription renewal
transaction, we increased the local grace period (time
before refresh) to 90 seconds.
CdvPurchase.Internal.ExpiryMonitor.GRACE_PERIOD_MS[Platform.APPLE_APPSTORE] = 90000;