Question

Upgraded Purchases_Flutter from 4.11.1 to 5.5.0 getting PlatformException 2 Error

  • 12 August 2023
  • 1 reply
  • 85 views

Badge +1

IGNORE: Was issue with simulator needing to be restarted.


Im using flutter and just upgrade from flutter_purchase 4.11.1 → 5.5.0 and I’m getting a

PlatformException(2, There was a problem with the store., {code: 2, message: There was a problem with the store., readableErrorCode: StoreProblemError, readable_error_code: StoreProblemError, underlyingErrorMessage: Error when fetching products. DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE.}, null)

When I call:
await Purchases.getOfferings()

Was working perfectly fine until I upgraded. I only have 1 time purchases configured no subscriptions so as I understand it the google migration stuff doesn’t apply to me. Do I need to add some new config setting in in androidmanifest.xml or build.gradle need something new to support billiing 5.0?

Currently in my AndroidManifest.xml I have this:
<uses-permission android:name="com.android.vending.BILLING" />

1 reply

Userlevel 4
Badge +8

Hi, glad to hear you solved this!

 

Answer: The simulator needed to be restarted.

Reply