Skip to main content
Question

Purchases.getOfferings() does not work for the Amazon Appstore

  • September 30, 2022
  • 0 replies
  • 51 views

Forum|alt.badge.img+3

I am trying to implement the IAP in the Amazon Appstore. I am doing the setup just like the docs says:

    await purchases.Purchases.setDebugLogsEnabled(kDebugMode);

    purchases.PurchasesConfiguration? configuration;
    if (Platform.isAndroid) {
      configuration = purchases.PurchasesConfiguration('goog_key');

      if (storeHelper.store == Store.amazonAppStore) {
        configuration = purchases.AmazonConfiguration('amzn_key');
      }
    } else if (Platform.isIOS) {
      configuration = purchases.PurchasesConfiguration('appl_key');
    }

    if (configuration != null) {
      await purchases.Purchases.configure(configuration);

      await premiumService.load();
    }

 

When I call Purchases.getOfferings() the call hangs. The native side does not respond to the Dart call.

 

I am reproducing this issue launching in debug and when download from the Live Testing service.

 

  • I am using purchases_flutter 4.2.1
  • I am executing adb shell setprop debug.amazon.sandboxmode debug 
  • Tested in a Samsung device with the Amazon store installed and in a Fire Tablet, same behavior in both

 

What should I do to fix this issue?

 

 

This post has been closed for comments

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings