Skip to main content

I'm using Flutter to develop my application, but I ran into a problem when I tried to incorporate a revenue cat subscription feature into my Android app. This problem is specific to Android, not iOS, so the error message I'm seeing in the debug log is “Error loading offerings info: PlatformException(3, The device or user is not allowed to make the purchase., {code: 3, message: The device or user is not allowed to make the purchase., readableErrorCode: PurchaseNotAllowedError, readable_error_code: PurchaseNotAllowedError, underlyingE
rrorMessage: Error when fetching products. DebugMessage: Billing Unavailable. ErrorCode: BILLING_UNAVAILABLE.}, null)”
I have followed all the instructions they have given me, and I have made sure to do so, but I'm still having trouble. If someone could assist me, I would be very grateful.

Hi, this error is usually device-specific and comes from Google. 

Here are the trouble shooting steps that we suggest:

  • Make sure you are using a physical device that is updated as sometimes emulators can have problems making purchases
  • Make sure you're logged in with a Google account.
  • Check that your test user is properly configured, see our guide here
  • Try this with a different device.This will rule out of it is a device-specific issue 

You can check if a user is able to make purchases through the canMakePayments method, see here


same issue.


purchases_flutter: 8.4.0

Error Log:

Error: PlatformException(3, The device or user is not allowed to make the purchase., {code: 3, message: The device or user is not allowed to make the purchase., readableErrorCode: PurchaseNotAllowedError, readable_error_code: PurchaseNotAllowedError, underlyingErrorMessage: Error updating purchases. DebugMessage: Billing Unavailable. ErrorCode: 3., userCancelled: false}, null)

and i added canMakePayments to my logs. it returns true for this user. It throws when user tries to subscribe with ```Purchases.purchasePackage(package);``` method. It throws in production.

User Info:

- Platform: Android
- VersionRelease: 11
- VersionSdk: 30
- physicalDevice: true
- canMakePayments: true

 


Same issue here. ​@Haley Pace 

We tested android purchase with licence testers however this error logs keep coming from the released app. Also, canMakePayments: true for the user. 

 


Hello,

I was bumping into the same issue, for me the problem was that I created a custom device emulator but picked a system image without Play Store.

Hope this helps someone out.


Hi ​@AliG ​@i-rem-f87d30, thank you for letting me know. I am looking into this with the team and will update here


Reply