Skip to main content

I’ve properly installed RevenueCat in Flutter and connected Play Store and App Store properly in the dashboard. I’m still getting these error.

D/ePurchases] - DEBUG( 6650): ℹ️ Debug logging enabled
D/D/.Purchases] - DEBUG( 6650): 👤 Initial App User ID - null
D/ Purchases] - DEBUG( 6650): 👤 Identifying App User ID: $RCAnonymousID:538da561a80b40f4a23aa08aa6709f83
D/8Purchases] - DEBUG( 6650): ℹ️ Deleting old synced subscriber attributes that don't belong to $RCAnonymousID:538da561a80b40f4a23aa08aa6709f83
D/3Purchases] - DEBUG( 6650): ℹ️ App foregrounded
D/Purchases] - DEBUG( 6650): ℹ️ PurchaserInfo cache is stale, updating from network in foreground.
D/nPurchases] - DEBUG( 6650): ℹ️ Offerings cache is stale, updating from network in foreground
D/fPurchases] - DEBUG( 6650): 😻 Offerings updated from network.
D/fPurchases] - DEBUG( 6650): ℹ️ Skipping updating pending purchase queue since BillingClient is not connected yet.
D/lPurchases] - DEBUG( 6650): ℹ️ No subscriber attributes to synchronize.
D/sPurchases] - DEBUG( 6650): ℹ️ Listener set
D/aPurchases] - DEBUG( 6650): ℹ️ Sending latest PurchaserInfo to listener.
D/Purchases] - DEBUG( 6650): ℹ️ Starting connection for com.android.billingclient.api.BillingClientImpl@afa1d64
D/dPurchases] - DEBUG( 6650): ℹ️ Billing Service Setup finished for com.android.billingclient.api.BillingClientImpl@afa1d64
D/mPurchases] - DEBUG( 6650): ℹ️ Updating pending purchase queue
D/sPurchases] - DEBUG( 6650): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3A538da561a80b40f4a23aa08aa6709f83
D/bPurchases] - DEBUG( 6650): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3A538da561a80b40f4a23aa08aa6709f83 304
D/bPurchases] - DEBUG( 6650): ℹ️ PurchaserInfo updated, sending to listener.
D/sPurchases] - DEBUG( 6650): ℹ️ API request started: GET /subscribers/%24RCAnonymousID%3A538da561a80b40f4a23aa08aa6709f83/offerings
D/sPurchases] - DEBUG( 6650): ℹ️ API request completed with status: GET /subscribers/%24RCAnonymousID%3A538da561a80b40f4a23aa08aa6709f83/offerings 304
D/sPurchases] - DEBUG( 6650): ℹ️ Querying purchases
D/7Purchases] - DEBUG( 6650): ℹ️ Cleaning previously sent tokens
D/gPurchases] - DEBUG( 6650): ℹ️ Tokens already posted: C]
D/rPurchases] - DEBUG( 6650): ℹ️ Saving tokens B]
D/:Purchases] - DEBUG( 6650): ℹ️ Tokens already posted: -]
W/BillingClient( 6650): getSkuDetails() failed. Response code: 2
E/Purchases] - ERROR( 6650): 🤖‼️ Error when fetching products DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE.
E/ Purchases] - ERROR( 6650): 🤖‼️ There was a problem with the Play Store.
E/dPurchases] - ERROR( 6650): 🤖‼️ Error fetching offerings - PurchasesError(code=StoreProblemError, underlyingErrorMessage=Error when fetching products. DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE., message='There was a problem with the Play Store.')

Flutter doctor log:

e✓] Flutter (Channel stable, 2.8.1, on macOS 11.1 20C69 darwin-x64, locale en-PH)
• Flutter version 2.8.1 at /Volumes/500/Development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1

n✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
• Android SDK at /Users/kirkcharlesniverba/Library/Android/sdk
• Platform android-31, build-tools 32.0.0-rc1
• Java binary at: /Volumes/500/Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.

e!] Xcode - develop for iOS and macOS (Xcode 12.5)
• Xcode at /Volumes/500/Applications/Xcode.app/Contents/Developer
! Flutter recommends a minimum Xcode version of 13.0.0.
Download the latest version or update via the Mac App Store.
• CocoaPods version 1.11.2

m✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /Volumes/500/Applications/Google Chrome.app/Contents/MacOS/Google Chrome

<✓] Android Studio (version 2020.3)
• Android Studio at /Volumes/500/Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

i✓] VS Code (version 1.63.2)
• VS Code at /Volumes/500/Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.29.0

r✓] Connected device (2 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.110

! Doctor found issues in 1 category.

 

Same problem. I have no idea how to solve that. After Googled and search at Stack Overflow, all running like a charm at iOS, but in Android 🐒💩


Getting the same issue here. Did anyone solve this?

 

BTW, how can you tell that you have added both apps properly in the Dashboard? 


I understand that these problems may trigger the issue on Android:

Upon checking, it has been days that this issue is still persistent. Developer API Quota has not been exceeded. I’ve checked the package name on RevenueCat dashboard, and it’s correct.

I am facing same error. Could you tell me whether product Identifiers for Google Play Store and Apple App Store can be the same or not?


I am facing same error, and trying to solve it, but still no break through. any solution ?


`SERVICE_UNAVAILABLE` from Google would indicate their network is down. Reference: https://developer.android.com/reference/com/android/billingclient/api/BillingClient.BillingResponseCode#SERVICE_UNAVAILABLE

I wouldn’t expect this to persist for too long and it’s not something we’re hearing reports of so doesn’t seem to be widespread. I wonder if there’s some configuration that could also cause this error 🤔. Is there some permission that’s blocking Google Play Billing on the device? 

Here’s some more info I found on Stackoverflow about the error: https://stackoverflow.com/questions/15889480/iabresult-billing-service-unavailable-on-device-response-3billing-unavailab. Doesn’t seem like there’s a universal solution that’s worked for everyone but maybe something there would help?

 

 


I understand that these problems may trigger the issue on Android:

Upon checking, it has been days that this issue is still persistent. Developer API Quota has not been exceeded. I’ve checked the package name on RevenueCat dashboard, and it’s correct.