I'm using the latest purchases_flutter: ^6.5.0
. All setup is done for Android, Apple consoles, and RevenueCat console, and the testing account is properly configured. Subscription purchase works correctly on iOS, but on Android, it displays the following error:
PlatformException(5, The product is not available for purchase., {code: 5, message: The product is not available for purchase., readableErrorCode: ProductNotAvailableForPurchaseError, readable_error_code: ProductNotAvailableForPurchaseError, underlyingErrorMessage: Error updating purchases. DebugMessage: . ErrorCode: ITEM_UNAVAILABLE., userCancelled: false}, null)
I have tried the following methods, but they all result in the same error:
var customerInfo = await Purchases.purchasePackage(package!); var customerInfo = await Purchases.purchaseStoreProduct(package!.storeProduct); var customerInfo = await Purchases.purchaseProduct("tv_basic_annual");
There are other threads where the same issue is reported, but the solutions are for lower API versions. I am stuck with this error and need assistance in resolving it.
I tested this thing in real device.