Skip to main content

I am getting the following error when trying to test my app integration with Amazon. I have already implemented purchases with RevenueCat on this same app for Google Play and Apple, and it works fine on those stores. 

Now I am getting this error when I try to start selling subscriptions on this app on the Amazon Appstore.

 

D/DPurchases] - DEBUG(15726): ℹ️ Offerings cache is stale, updating from network in foreground

D/>Purchases] - DEBUG(15726): 😻 Start Offerings update from network.

D/

D/ Updating pending purchase queue

D/uPurchases] - DEBUG(15726): ℹ️ No subscriber attributes to synchronize.

D/hPurchases] - DEBUG(15726): Getting storefront from cache was null.

D/aPurchases] - DEBUG(15726): ℹ️ Listener set

D/LPurchases] - DEBUG(15726): API request started: GET /subscribers/xxxx/offerings

D/xPurchases] - DEBUG(15726): API request completed with status: GET /subscribers/xxxx/offerings 304

D/fPurchases] - DEBUG(15726): ℹ️ No cached Offerings, fetching from network

D/iPurchases] - DEBUG(15726): 😻 Start Offerings update from network.

D/pPurchases] - DEBUG(15726): Request already scheduled with jitter delay, adding existing callbacks to unjittered request with key: BackgroundAwareCallbackCacheKey(cacheKey=[/subscribers/xxx/offerings], appInBackground=false)

D/IPurchases] - DEBUG(15726): Getting storefront from cache was null.

D/rPurchases] - DEBUG(15726): API request started: GET /subscribers/xxxxx/offerings

D/ePurchases] - DEBUG(15726): API request completed with status: GET /subscribers/xxxx/offerings 304

E//Purchases] - ERROR(15726): Error obtaining storefront in Amazon: PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')

E/ePurchases] - ERROR(15726): 😿‼️ PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')

2

E/=Purchases] - ERROR(15726): 🤖‼️ Error fetching offerings - PurchasesError(code=UnknownError, underlyingErrorMessage=Timeout error trying to get Amazon user data., message='Unknown error.')

Hey ​@UlyssesAlves,

Can you confirm you’ve added the account that’s signed into the Amazon Appstore as a tester, and are using Live App Testing as described in our testing guide? https://www.revenuecat.com/docs/test-and-launch/sandbox/amazon-store-sandbox-testing 

 


Hi ​@cody .

Yes, my Amazon account is setup as a tester on Amazon Developer portal and I am using Live App Testing.

But it seems like my code is not working because I am authenticating my app users through Firebase, which might not be supported by the Amazon Appstore. The error message makes sense indeed.

I should probably use Amazon instead as my users authentication mechanism to successfully make purchases on the Amazon Appstore, or else the user will not exist there and purchases will not work of course. In other words, the Firebase user id just does not exist on the Amazon Appstore and thus cannot be found.

I haven't been able to confirm this hypothesis yet, though, for lack of time, so I cannot at this time say for sure that this would really be a solution.