adaptyteam / AdaptySDK-Flutter

SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
88 stars 15 forks source link

makePurchase didn't return anything always generating purchase sheet again and again #107

Closed akahamzidollar closed 2 months ago

akahamzidollar commented 3 months ago

I'm trying to call makPurchase function but it always generating sheet Here is Code:

Future<AdaptyProfile?> callMakePurchase(AdaptyPaywallProduct product) async {
    try {
      final result = await adapty.makePurchase(product: product);
      print(result);
      Get.find<AuthController>().refreshUser();
      return result;
    } on AdaptyError catch (adaptyError) {
      onAdaptyErrorOccurred?.call(adaptyError);
    } catch (e) {
      onUnknownErrorOccurred?.call(e);
    }
    return null;
  }

Screenshot:

x401om commented 3 months ago

Hi, @akahamzidollar! The Adapty SDK does not currently support purchases made with the iOS Simulator. Please monitor this issue for further details.

akahamzidollar commented 2 months ago

@x401om! Thank you for reply. This issue was produced on simulator and real device as well. But when i set StoreKit 2 Configuration on Adapty dashboard this issue was solved.