Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
akahamzidollar opened this issue Apr 29, 2024 · 2 comments

Comments

@akahamzidollar
Copy link

akahamzidollar commented Apr 29, 2024

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
Copy link
Collaborator

x401om commented Apr 29, 2024

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

@akahamzidollar
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants