Discussions

Ask a Question
Back to All

On Flutter you can't renew a iOS test subscription after it has been (auto) cancelled

Using the flutter plugin (v1.16.3) I can buy a subscription with Adapty.makePurchase() and the subscription works correctly. Then it renews several times in 5 minute intervals as expected. And then finally is cancelled. After this happens, I cannot subscribe again.

I can see in the logs just after my call to await Adapty.makePurchase(premiumSubscription) that it seems to indicate the subscription was successful.

2021-11-20 16:43:52.243-0800 [Adapty v1.16.3(1)] - INFO.
Successfully purchased product: com.--placeholder-product--.monthly

But the MakePurchaseResult result from Adapty.makePurchase() is showing it is not active.

MakePurchaseResult.toString() = id: premium, isActive: false, vendorProductId: com.--placeholder-product--.monthly, store: app_store, activatedAt: 2021-08-22 17:54:35.000Z, renewedAt: 2021-11-20 21:14:06.000Z, expiresAt: 2021-11-20 21:19:06.000Z, isLifetime: false, activeIntroductoryOfferType: null, activePromotionalOfferType: null, willRenew: false, isInGracePeriod: false, unsubscribedAt: 2021-11-20 21:19:06.000Z, billingIssueDetectedAt: 2021-11-20 21:19:06.000Z, vendorTransactionId: null, vendorOriginalTransactionId: null, startsAt: null, cancellationReason: voluntarily_cancelled, isRefund: false}

The UI on the device does NOT show the subscription popup either.