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

Code Execution Halt After Successful Purchase on macOS #1061

Open
harshparikhfb opened this issue May 1, 2024 · 5 comments
Open

Code Execution Halt After Successful Purchase on macOS #1061

harshparikhfb opened this issue May 1, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@harshparikhfb
Copy link

Description:
Issue Summary:
Following the execution of CustomerInfo customerInfo = await Purchases.purchasePackage(listPlans[index]);, which denotes a successful purchase transaction, all subsequent code fails to execute on the macOS platform.

Steps to Reproduce:

Execute the code CustomerInfo customerInfo = await Purchases.purchasePackage(listPlans[index]); on macOS platform.
Confirm successful purchase transaction.
Observe the lack of execution of any code subsequent to the purchase function call.
Expected Behavior:
Upon a successful purchase, the subsequent code should execute as intended, regardless of the platform.

Actual Behavior:
On macOS platform, code execution halts after the successful purchase transaction, preventing the execution of any subsequent code.

Additional Information:

Framework/Language: Dart
Platform: macOS
SDK Version: [Specify SDK version used]
Relevant Code Snippet:
try { CustomerInfo customerInfo = await Purchases.purchasePackage( listPlans[index]); if (customerInfo .entitlements.all[entitlementID] != null && customerInfo.entitlements.all[entitlementID] ?.isActive == true) { //success } else { isUserSubscribed = false; } } on PlatformException catch (e) { showToast(e.message.toString()); } catch (error) { debugPrint('$error'); }

@harshparikhfb harshparikhfb added the bug Something isn't working label May 1, 2024
@RCGitBot
Copy link
Contributor

RCGitBot commented May 1, 2024

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@Jethro87
Copy link

Jethro87 commented May 3, 2024

@harshparikhfb Would you mind replying with:

  • Debug logs
  • The SDK version of purchases_flutter you're using
  • macOS version

Also, does this code run properly on other platforms? Or have you only tried this on macOS? Thanks!

@harshparikhfb
Copy link
Author

Debug Logs:
No debug logs are showing because it halts after a successful purchase.

The SDK version of purchases_flutter you're using:
6.29.0

macOS version:
14.4.1

@Jethro87
Copy link

Jethro87 commented May 8, 2024

@harshparikhfb Debug logs will still be helpful up until the point that execution halts, so if you can provide them that would be helpful. Is this only happening on macOS, or have you tried on other platforms?

@Louna-akkad1
Copy link

iam having same issue with same 6.29.0 on andriod is this solved ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants