Question

offerings are empty when using amazon app store and flutter

  • 19 November 2022
  • 2 replies
  • 26 views

Badge +3

Hello

we are hitting a deadend when we try to retrieve offerings when using flutter and amazon

 

our flutter package purchases version is 4.0.0

and we are using amazon.alpha4

 

we tried everything possible to get the offerings but everything failed, I have read the community posts here, and tried github posts on revenuecat repository, and I couldn’t find any information or fixes.

 

We tried using the app with live app testing and with app tester on amazon and both didn’t work.

 

here is the console:

D/[Purchases] - DEBUG( 4941): ℹ️ Products request finished with result SUCCESSFUL
D/[Purchases] - DEBUG( 4941): ℹ️ Retrieved productData: {}
D/[Purchases] - DEBUG( 4941): ℹ️ Product data is empty
D/c       ( 4941): In App Purchasing SDK - Sandbox Mode: sendGetUserDataRequest
D/c       ( 4941): In App Purchasing SDK - Sandbox Mode: handleResponse
D/[Purchases] - DEBUG( 4941): ℹ️ User data request finished with result SUCCESSFUL
D/[Purchases] - DEBUG( 4941): ℹ️ Requesting Amazon products with identifiers: cvium_sub_1month_0.99, CVium_sub_3month_1.49, CVium_sub_6month_1.99, 1month, CVium_All_Subs_1month, CVium_All_Subs_3month, CVium_All_Subs_6month, CVium_All_Subs
D/c       ( 4941): In App Purchasing SDK - Sandbox Mode: sendItemDataRequest
D/c       ( 4941): In App Purchasing SDK - Sandbox Mode: handleResponse
D/[Purchases] - DEBUG( 4941): ℹ️ Products request finished with result SUCCESSFUL
D/[Purchases] - DEBUG( 4941): ℹ️ Retrieved productData: {}
D/[Purchases] - DEBUG( 4941): ℹ️ Product data is empty

 

 

We also tried older version of the RC sdk and amazon.alpha3 and we got the same issue.

 

are we missing anything here, or there is an actual bug?


2 replies

Userlevel 4
Badge +9

Let me ask the SDK team for input here

Userlevel 4
Badge +9

Hello, sorry for the delay! Here’s is what our mobile engineers say:

If they’re testing locally (which seems to be the case because of the “sandbox” messages in the logs), the likely culprit is that they’re missing products in the json.

As a reminder, in Amazon, when testing locally, you need to set up the AppTester app from Amazon, and in AppTester you need to upload a json file with all the products. You can download a ready-to-use json file from the Amazon developer console.

And as a second reminder, with sandbox you should be able to display the products (assuming AppTester is installed, sandbox mode is enabled and the products json is correctly uploaded), but purchases won’t be validated by our backend

Reply