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
In App Purchase sanbox reopens repeatedly and does not send purchased status in stream #138134
Comments
Hi @hamadJamal. Thanks for filing this. From your description, this seems to be related to Auto-Renewable Subscription not expiring while in Sandbox which could be similar/related to #36682. Can you check this out?? |
Hi @dam-ease,
|
@dam-ease |
Why are you CCing me |
Hi @hamadJamal. Thanks for your detailed response. Does this issue only occur on iOS 17? Are you able to try this on another iOS version (emulator or real device) or Android? |
Hi, @dam-ease, |
Thanks for your response. Can you please provide a minimal complete reproducible code sample that doesn’t include 3rd party plugins or complex production code that we could use to reproduce this on our end? |
Hello. To note, I am facing this same issue. Everything works great on Android, but on iOS, once I get the success message, the purchased status never occurs. |
@dam-ease I think I missed a major point here. I was running my in-app autorenewable purchase process in an ios simulator without Configuration.storkit setup, as I have my products setup in app store connect already. Now I did local storekit setup by syncing it with appstore connect locally using xcode, the purchase process worked flawlessly. is this an expected behavior? because I see this setup in the example project of in app purchase as well. Please correct me if I am wrong. |
Thanks for your response. Yes, this is the expected behaviour as seen in the example project as well. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I am facing a weird issue while making auto renewable subscription through in_app_purchase package in IOS simulator 17.0.
What works well:
I am able to fetch my subscription product from the app store.
Future<void> _getProducts() async { ProductDetailsResponse response = await _iap.queryProductDetails(productIds.toSet()); if (response.notFoundIDs.isNotEmpty) { print('These products were not found: ${response.notFoundIDs.join(', ')}'); } _products = response.productDetails; notifyListeners(); }
I am able to open the sandbox and start the pruchase using sanbox tester account in the apple app store.
Future<void> buyProduct(ProductDetails product) async { final PurchaseParam purchaseParam = PurchaseParam(productDetails: product); try { await _iap.buyNonConsumable(purchaseParam: purchaseParam); } catch (e) { print("$e"); } }
The sanbox shows the "DONE" UI, but I NEVER get the PurchasedStatus.purchased in my stream, and the sandbox reopens again.
The cycle repeats
Here is the output of my flutter doctor -v
Details
@dam-ease Here is the preview of issue for your understanding
https://www.loom.com/share/0a483d3dcba44807bec0a38e0a752e66?sid=faf18c39-f93f-47a0-8ed2-fc4e867c99b2
The text was updated successfully, but these errors were encountered: