Code Execution Halt After Successful Purchase on macOS
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'); }
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
@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!
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
@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?
iam having same issue with same 6.29.0 on andriod is this solved ?