-
Notifications
You must be signed in to change notification settings - Fork 169
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
ERROR: 🍎‼️ There was a problem with the App Store in both Production and Sandbox #317
Comments
Hello! It doesn't seem like we have quite enough information to send this to a human yet to help out. We would love if you could provide more details about your issue by following the template without modifying any of the pre-filled text. If you're looking for support, head over to our Community. |
I have edited my post above to fit the template |
Thanks for the thorough report. This is a very weird error. I've never seen anything like this before. Looking at the logs, it looks like it's coming directly from Apple, so I am curious about one thing. You say "where a user can not make a purchase on the Apple App Store in BOTH Production and Testing", do you mean this happens to all users, or to a specific user? I wonder if there's something wrong with that particular account or the device. Have you tried in other device? Other network? Are you using a VPN or something that could be interfering with your network requests? Thanks! Looking forward to your answers |
Hi Vegaro, so the app is on the App Store (not sure how it got through), but luckily we have not started marketing hence, we have no "real" customers yet. I have used a few iPhones (7, 8+, 11) with unrelated account information to our Apple Dev Account (as I just assumed in testing that somehow I have messed up the sandbox accounts etc), and all of which have given the error. The testing I have done on have been on different networks, we are based in South Africa if that means anything, but no VPNs are being used by said users, and I have tried over wifi and on cellular networks. Our servers do block traffic trying to perform a login from outside South Africa, but the app itself can communicate freely, for example we receive push notification from firebase etc. Do you think the network request is maybe being rerouted or something along those lines? Apologies for my poor networking knowledge. |
Hey @AnAlpaca! Jumping in to try and help here. Since it's coming from Apple, we don't have a lot of insight into why they would be returning this error- usually this is only seen in sandbox, and we don't have any indication currently that Apple's production API is down. There's a few other things we can check though:
|
Hi @codykerns Really appreciate all the assistance. I am currently at home at the moment as its 6.30pm here currently, but as soon as Im back in the office at 8am (gmt +2) tomorrow ill respond in full. What I can potentially do (just an idea) is generate a promo code for you guys to get past the first purchase on the actual store and then from there, you should be able to try to subscribe. I have had a the app on the store before and everything worked fine, including the subscription, ill include more details tomorrow but yes the in app product are definitely approved and ready for sale. The production version was 100% downloaded on at least 3 of the devices as they were installed from the store on a few friends devices and have never made contact with my pc (ie dev version) and arent part of the testflight accounts. |
Hi @codykerns @vegaro. So I really am just hoping with all of this that I have been stupid somewhere along the way, because obviously that would be the easiest outcome. But to answer with a little more detail: Are you certain it's this same error you're encountering in production?
How are you collecting these logs in production?
Are you certain you are using the App Store version of the app? (you'd have to delete the testing version, and re-download the production version from the App Store)
If so, are you certain that your in-app products are in the Approved state and your app is Ready for Sale? How long has your app been approved on the App Store? Some extra context and added information:
Let me know if more testing/debugging is required and what I can do to explore this issue further. I understand that I may be a complete idiot, so feel to let me know ;) |
Hey @AnAlpaca you're certainly not an idiot! This is a really confusing and frustrating error... I'm going to continue digging on our side, but one question: I see the log |
Hi @beylmk, The actual error handing was not shown above, but the error that displays is the same as that of the logs 'PurchasesErrorCode.storeProblemError<…>' But see below, it is the code for the button the user presses, excuse the untidiness, but you will see that it calls the 'on PlatformException' and the last else statement.
|
Hey @AnAlpaca, got it, thank you! So we know it's a storeProblemError but we don't necessary know the error details/message in prod. This is tricky. Here's my thought: We tried downloading your app but since it's restricted by region, we can't (we tried in US). One thing we did notice is that no API calls have come from your app since February 11th, which leads us to think something bigger is going on here...perhaps both our APIs and Apple are being blocked or something. Have you tried running the app since then? |
Hi @beylmk, it is very possible that there has been no activity as I have been doing some back-end work on another project for the past week. But I have did do a test subscription last night on Android, so it that doesn't show up then there is something not quite right (or were you meaning IOS specifically). I will try run the app on IOS today and post on here when i have done so. I like your plan, as it rules out any general account issues, I will download and give that a go at the same time as said above and let you know what I find. Just wanted to say that i am really impressed by all your help on this matter, and really appreciate it! |
Happy to help!! I'm really hoping we can figure this out... Just a quick update -- I do see Android logs coming through to our backend in the past couple days but still no iOS ones. Let me know when/if you're able to try iOS and we can check again. |
This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Please reach out if you have additional information to help us investigate further! |
any news? i am having the same error still |
Can you provide more context on what other information you get with the error? |
Sorry for taking far to long to reply to this, and sadly im going to be a little frustrating because I can't give an exact solution. I ended up moving away from the problem for about two months due to time contraints, I then came back to it and re looked at it with some fresher eyes, and since then there had been a few updates including I think store kit 2, which I enabled. But more importantly that I was getting really frustrated that some other apps on the device, scuh as the appstore, sometimes it would connect but then I couldnt download anything, and everything else in the app was perfect. I realized that it was on our office wifi, when things would work but be flaky and on mobile data things would be stable. So I checked the firewall (fortigate) and everything looked fine, I had the correct rules in place. I then made an exception in the web filter ( that would live check the packets of data), and I think that is what ended up solving the issue for me, no one external testers have experienced this issue in the wild either. Another piece of information, is that I also had deleted my apple sandbox account, left it for that period, and then made new one as I was worried that I was doing something incorrectly and they were potentialed blacklisting the account. |
Describe the bug
I have a issue at the moment where a user can not make a purchase on the Apple App Store in BOTH Production and Testing, which rules out Sandbox accounts etc (have also dived down said route). The same code is working perfectly for Android.
flutter doctor
How widespread is the issue. Percentage of devices affected.
Affects devices only
Debug logs that reproduce the issue
Here is the code I am using to make the purchase:
The code continues for some dialog handling etc, but it never reaches the loggerInfo(logMessage: 'purchase completed');
The widget.package is passed from the widget above, and is fetched as follows:
The code used for the _fetchOfferings future function is:
Lastly the the SDK is configured as shown in the documentation, with a few conditional tweaks:
Additional context
Things I have explored/tried:
Deleting and creating sandbox accounts for Apple.
Checked I have no outstanding agreements with Apple.
Made sure in-app purchases in enabled.
Tried configuring the purchases_flutter package with both legacy and new api key.
I am sure a ton more, that I don’t remember.
The error looks as follows:
Any help will be hugely appreciated.
The text was updated successfully, but these errors were encountered: