You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But after upgraded iOS14, ios subscription pop up did not show up.
It seems loadProducts() failed and purchaseProduct() did not call.
I checked this issue, i upgraded this library from 6.0.1 to 6.0.2
But above code leaded to uncontrollable timing of ios subscription popup.
After changed like below, it worked perfectly.
if (!await PurchaseService.canMakePayments) {
...
}
await PurchaseService.purchaseProduct(productId)
constpurchaseProduct=(productId: string)=>{returnnewPromise((resolve,reject)=>{InAppUtils.loadProducts(products,(error,response)=>{if(error){reject(error)}returnInAppUtils.purchaseProduct(productId,(error,response)=>{// NOTE for v3.0: CurrentUser can cancel the payment which will be available as error object here.if(error){reject(error)}if(response&&response.productIdentifier){resolve(response)}})})})}
version
Overview
Before upgrade iOS 14, our code worked fine as follows.
But after upgraded iOS14, ios subscription pop up did not show up.
It seems loadProducts() failed and purchaseProduct() did not call.
I checked this issue, i upgraded this library from
6.0.1
to6.0.2
But above code leaded to uncontrollable timing of ios subscription popup.
After changed like below, it worked perfectly.
Call purchaseProduct method inside loadProducts callbacks.
It seems there are some related sentences in README, but i think sample code(purchaseProduct()) should be fixed.
The text was updated successfully, but these errors were encountered: