Am i the only one who is facing this problem with the Apple sandbox server being down when trying to do in app purchases
I keep getting an error saying " Cant connect to Itunes store
We have a consumable IAP product that is currently in "Ready to Submit" phase in the app store. When we to start purchasing the product in sandbox environment by adding SKPayment to SKPaymentQueue, we get an error that says "Cannot connect to App Store". This takes a few minutes and is not instantaneous. Also attempted to buy a subscription IAP in the sandbox environment and that failed too.
Related
In our app we are using server side verification of receipts with app store. However the backend seems to always get 21002 error code from apple after verifying the receipt.
We are testing our IAP with TestFlight and we are able to successfully buy an IAP on TestFlight. The IAP is approved in AppStoreConnect but we need the Cleared for Sale checkmark not checked (so that it is not available for purchase in App Settings). Is is possible that this is the reason apple is unable to verify the receipt even for purchases in TestFlight. Or such purchases should be ok and we should look for the problem elsewhere?
I get errors when I try my IAP's in the simulator, it says "Purchase Failed: invalidProductId" but it returns the right ID that is setup in the store. Is this because I have not submitted my app (or binary, what is this?)?
Project is here: github.com/kaio37k/KCC
my new app was rejected by apple because of "Parse error 146" during In App Purchase.
But when I test my app on my real device, all works perfectly.
I've read that error 146 means that the product identifier is invalid. But all my product Id registered on iTunes Connect are correct.
All my In App Purchases are in "Waiting for Review" status. Could be this the problem? Do I have to wait the review of In App Purchase and THEN submit the app?
Many thanks in advance,
Nicola
I have a live iOS app. on the store.
I created a new version and I had the state "Ready for Upload".
After that I added a new in-app purchases and I got those state "Approved".
Does that mean all I have to do now is to upload my IPA throw the Application Loader and those in-app purchases will be available on that new version.
Usually, I remember before proceed with the step "Ready to upload binary" I should attach those new purchases to that version. Is that right? Am I remembering well?
Or, I have to self reject the new binary after uploading it throw application loader and then attach purchases and proceed again with ready to upload binary then re-upload. because rejecting it is the only way to get a step backward?
Any ideas?
What we can get from this apple doc "Approved" state means?
Apple has approved your In-App Purchase to go live on the App Store
with its associated app. For this status to appear, the In-App
Purchase must be cleared for sale in iTunes Connect. If it is not
cleared for sale, the status appears as “Developer Removed from Sale.”
If the product is being released with an app version, the product
won’t have an Approved status until the app is approved.
On iPhone simulator, I could go through and successfully finished IAP.
However, on my device, It would return at switch-case "SKPaymentTransactionStateFailed" and failed to purchase. Even I deleted the app and tried again, it still does not work. The error msg(transaction.error.localizedDescription) is: "Cannot connect to iTunes Store"
How to fix this issue?
Probably you are logged in to a production App Store account, and that prevents your app from completing an IAP from the sandbox environment.
You have to logout of your account. Go to your device Settings -> iTunes & App Stores, tap your ID and logout. Then launch your App through Xcode. When you perform an IAP, the sandbox App Store login window should come up. You can login there with any Test User previously created on iTunes Connect.
It is a temporary problem with Apple servers. Recently there were various problems with Game Center (often returning error 404) and In-App Purchases returning "Cannot connect to iTunes Store" and sometimes even proceeding with the transaction afterwards. Try it multiple times, it will work (if you have your code right of course).