Skip to main content

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?

 

 

Be the first to reply!

Reply