Skip to main content

D/[Purchases] - DEBUG( 6814): Request already scheduled with jitter delay, adding existing callbacks to unjittered request with key: BackgroundAwareCallbackCacheKey(cacheKey=[/subscribers/%24RCAnonymousID%3A05155e0681644ad69dc66564531ea514/offerings], appInBackground=false)

D/[Purchases] - DEBUG( 6814): Getting storefront from cache was null.

D/EGL_emulation( 6814): app_time_stats: avg=9341.14ms min=3.54ms max=130723.25ms count=14

D/[Purchases] - DEBUG( 6814): API request started: GET /subscribers/%24RCAnonymousID%3A05155e0681644ad69dc66564531ea514/offerings

D/[Purchases] - DEBUG( 6814): API request completed with status: GET /subscribers/%24RCAnonymousID%3A05155e0681644ad69dc66564531ea514/offerings 304

D/[Purchases] - DEBUG( 6814): ℹ️ Requesting products from the store with identifiers: premium, elpa_1299_forever

W/BillingClient( 6814): getSkuDetails() failed for queryProductDetailsAsync. Response code: 2

E/pPurchases] - ERROR( 6814): 🤖‼️ Billing is unavailable. App is in foreground. Won't retry.

E/yPurchases] - ERROR( 6814): 🤖‼️ Error when fetching products - DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE.

E/VPurchases] - ERROR( 6814): 🤖‼️ PurchasesError(code=StoreProblemError, underlyingErrorMessage=Error when fetching products - DebugMessage: An internal error occurred.. ErrorCode: SERVICE_UNAVAILABLE., message='There was a problem with the store.')

E/iPurchases] - ERROR( 6814): 🤖‼️ 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 store.')

I/flutter ( 6814): o2024-10-09 08:38:53.997303] Error while getting offerings: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)

I/flutter ( 6814): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)

I/flutter ( 6814): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)

I/flutter ( 6814): <asynchronous suspension>

I/flutter ( 6814): #2 Purchases.getOfferings (package:purchases_flutter/purchases_flutter.dart:235:17)

I/flutter ( 6814): <asynchronous suspension>

I/flutter ( 6814): #3 getOfferings (package:englishpodall/API/englishpod_all.dart:771:23)

I/flutter ( 6814): <asynchronous suspension>

I/flutter ( 6814): #4 _MorePageState.build.<anonymous closure> (package:englishpodall/screens/more_page.dart:59:35)

I/flutter ( 6814): <asynchronous suspension>

I/flutter ( 6814):

E/flutter ( 6814): 6ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 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)

E/flutter ( 6814): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648:7)

E/flutter ( 6814): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)

E/flutter ( 6814): <asynchronous suspension>

E/flutter ( 6814): #2 Purchases.getOfferings (package:purchases_flutter/purchases_flutter.dart:235:17)

E/flutter ( 6814): <asynchronous suspension>

E/flutter ( 6814): #3 getOfferings (package:englishpodall/API/englishpod_all.dart:771:23)

E/flutter ( 6814): <asynchronous suspension>

E/flutter ( 6814): #4 _MorePageState.build.<anonymous closure> (package:englishpodall/screens/more_page.dart:59:35)

E/flutter ( 6814): <asynchronous suspension>

E/flutter ( 6814):

this error occur at purchases_flutter: ^6.30.0 . I had check at newest ver (purchases_flutter: ^8.1.5) and still get the same


Hi @Son Do,

The error SERVICE_UNAVAILABLE comes from directly from Google: https://developer.android.com/reference/com/android/billingclient/api/BillingClient.BillingResponseCode#SERVICE_UNAVAILABLE() 

There might be an issue with the device. Is the device able to download and initiate purchases in other apps?


I am also running into this same issue. It’s a physical device that is able to make purchases on Google Play Store and has been used in the past to integrate Revenue Cat in other apps. I am integrating a new app.


Hey @luke-pighetti I saw you had a Twitter thread with @Andy a few days ago, is this related to that, or is it a completely new issue?