I am encountering the following errors while testing my app’s integration with the Amazon Store.
😿‼️ PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')
I have already implemented purchases using RevenueCat for Google Play and Apple, and everything works fine on those stores.
However, when I try to connect to Amazon, I receive this error. I am testing with a user account that is a tester on LAT, using an Amazon Fire HD 8 (2022) with Amazon App Tester (with a loaded JSON configuration).
Any ideas on what might be going wrong and how to resolve this? I'm stuck on this issue. The app is ready for the Amazon Appstore, but the subscription issue is blocking it from functioning properly.
Flutter 3.29.0
purchases_flutter: ^8.6.0
Log:
D/[Purchases] - DEBUG(12948): ℹ️ Debug logging enabled
D/[Purchases] - DEBUG(12948): ℹ️ SDK Version - 8.13.0
D/[Purchases] - DEBUG(12948): ℹ️ Package name …...
D/[Purchases] - DEBUG(12948): 👤 Initial App User ID - null
D/[Purchases] - DEBUG(12948): ℹ️ Purchases configured with response verification: DISABLED
D/[Purchases] - DEBUG(12948): 👤 Identifying App User ID: $RCAnonymousID:056753aa98c542b6b09b490ea056f012
D/[Purchases] - DEBUG(12948): ℹ️ Deleting old synced subscriber attributes that don't belong to $RCAnonymousID:056753aa98c542b6b09b490ea056f012
D/d (12948): Appstore SDK - Sandbox Mode: PurchasingListener registered: com.revenuecat.purchases.amazon.AmazonBilling@63de026
D/d (12948): Appstore SDK - Sandbox Mode: PurchasingListener Context: android.app.Application@df059e2
D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue
D/[Purchases] - DEBUG(12948): ℹ️ App foregrounded
D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.
D/[Purchases] - DEBUG(12948): ℹ️ Listener set
D/[Purchases] - DEBUG(12948): ℹ️ Sending latest CustomerInfo to listener.
D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: FETCH_CURRENT
D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue
D/[Purchases] - DEBUG(12948): ℹ️ Offerings cache is stale, updating from network in foreground
D/[Purchases] - DEBUG(12948): 😻 Start Offerings update from network.
D/[Purchases] - DEBUG(12948): Request already scheduled with jitter delay, adding existing callbacks to unjittered request with key: BackgroundAwareCallbackCacheKey(cacheKey=[/subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings], appInBackground=false)
D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue
D/[Purchases] - DEBUG(12948): ℹ️ No subscriber attributes to synchronize.
D/[Purchases] - DEBUG(12948): Getting storefront from cache was null.
D/[Purchases] - DEBUG(12948): API request started: GET /subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings
D/[Purchases] - DEBUG(12948): API request completed with status: GET /subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings 304
D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:3b7df011-99c8-47fa-b840-de81283ecc4d
D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:1d55296c-1b9f-4022-ba4f-cdad15b89176
D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:d992724f-bc71-4cda-a04a-31228d1f1e1c
D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED
D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.
D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false
D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.
D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue
D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:1fc7ba60-6b50-4779-a2ab-4368ddccfe21
D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED
D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.
D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false
D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.
D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue
D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED
D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.
D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false
D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.
D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue
D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:dd256b06-f8f0-48f9-92d9-9332a0541504
D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:10e03459-7c30-4f79-9c41-082e0fb46598
D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED
D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.
D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false
D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.
D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue
D/[Purchases] - DEBUG(12948): Retrieving customer info with policy: CACHED_OR_FETCHED
D/[Purchases] - DEBUG(12948): ℹ️ Vending CustomerInfo from cache.
D/[Purchases] - DEBUG(12948): ℹ️ Checking if cache is stale AppInBackground false
D/[Purchases] - DEBUG(12948): ℹ️ CustomerInfo cache is stale, updating from network in foreground.
D/[Purchases] - DEBUG(12948): ℹ️ Updating pending purchase queue
D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:ccb28c4f-69a2-4117-b563-df6fd504184f
D/e (12948): Appstore SDK - Sandbox Mode: sendPurchaseUpdatesRequest/sendGetUserData first:b529689d-dea4-4f13-a6b3-716f0eb9b121
E/[Purchases] - ERROR(12948): Error obtaining storefront in Amazon: PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')
E/[Purchases] - ERROR(12948): 😿‼️ PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')
E/[Purchases] - ERROR(12948): 🤖‼️ Error fetching offerings - PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')
D/[Purchases] - DEBUG(12948): ℹ️ No cached Offerings, fetching from network
D/[Purchases] - DEBUG(12948): 😻 Start Offerings update from network.
D/[Purchases] - DEBUG(12948): Request already scheduled with jitter delay, adding existing callbacks to unjittered request with key: BackgroundAwareCallbackCacheKey(cacheKey=[/subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings], appInBackground=false)
D/[Purchases] - DEBUG(12948): Getting storefront from cache was null.
D/[Purchases] - DEBUG(12948): API request started: GET /subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings
D/[Purchases] - DEBUG(12948): API request completed with status: GET /subscribers/%24RCAnonymousID%3A056753aa98c542b6b09b490ea056f012/offerings 304
E/[Purchases] - ERROR(12948): 🤖‼️ Error fetching offerings - PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')