I am using cordova-plugin-inapppurchase with Ionic and I also opened an Issue on the plugin's repository: Issue #78
When I try to Restore a Purchase on iOS I get the Console Output below.
Console output
RMStore: restored transactions failed with error Error
Domain=SKErrorDomain Code=2 "Cannot connect to iTunes Store"
UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}
The reviewer in the App Store wrote:
Please run your app on a device while connected to an IPv6 network
(all apps must support IPv6) to identify the issue(s), then revise and
resubmit your app for review.
Is the plugin IPv6 complaint? What is the issue otherwise, I have been stuck in this for several days now.
Product Type
Consumable
Cordova version
6.4.0
iOS version
iOS 10
It was an issue with the account being related to another country. Nothing to do with the plugin.
Related
I'm testing IPhone and iPad Apps on Apple Silicon Macs.
When I purchase In-app product in the app on Apple Silicon Mac,
the payment receipt is not created, so the purchase fails.
In console log, it says it doesn't have permission to write to the file.
storekitagent [6913DE38_SK1] Error writing receipt (5095 bytes) to file:///Users/XXXX/Library/Containers/90FE2A60-9FDF-4ECF-848F-CE3D396322CA/Data/StoreKit/sandboxReceipt: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “sandboxReceipt” in the folder “StoreKit”" UserInfo={NSFilePath=/Users/XXXX/Library/Containers/90FE2A60-9FDF-4ECF-848F-CE3D396322CA/Data/StoreKit/sandboxReceipt, NSUnderlyingError=0x14202c920 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
The App is using Original API for In-App Purchase written in Objective-C.
When I purchase in-app product, the app calls SKPaymentQueue::addPayment.
And then it gets paymentQueue:updatedTransactions callback with SKPaymentTransactionStatePurchased.
This means that the payment was successful.
But the receipt is not created so I can't continue the after process.
I'm testing with sandbox in-app purchase.
I have tested several times and confirmed that on macOS Monterey 12.2 the receipt is created successfully, but on macOS Ventura 13.2 the receipt isn't created.
I think there is something to do with macOS version.
Does anyone have any solutions?
Here is a very similar thread on apple developer forum. (And there too has no anwsers)
https://developer.apple.com/forums/thread/719505
My app got rejected from app store with following reason:
We found that your in-app purchase product(s) exhibited one or more bugs, when reviewed on iPhone running iOS 10.2.
Specifically, a purchase error message was displayed when we tapped the subscription in-app purchases on the Pro Membership screen.
All my products are getting fetched correctly from in app services.
On further debugging I found that I am receiving following error
Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store"
UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}
Error is resolved when I follow this url
But my question is how can I take this case with the Apple review team?
When I push the app to iTunes connect for beta testing, I am getting the below error. Does my app store submission fail because of this?
Apple is currently having trouble with some of their services. You can check the status here: https://developer.apple.com/system-status/
Look at the warning sign and the text "this is just an informational message". It shouldn't be the cause of a rejection.
I have my application with in-app with hosted content, in sandbox mode. I am testing the in-app, all goes well and item is purchased and when it tries to download hosted content it ask for password for test user and after that it gives following error:
"Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo=0x16687c80 {NSLocalizedDescription=Cannot connect to iTunes Store} "
My application version 1.0 is approved without in-app and after adding in-app items with hosted content it works fine but when I prepare version 2.0 for submission it is not downloading the hosted content and gives cannot connect to iTunes error when downloading hosted content.
It seems to be an issue with Apple servers. The error is posted in Apple developer forum: https://devforums.apple.com/thread/253384 and https://devforums.apple.com/message/1071734. It's happening since November 6th. We'll have to wait... :(
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
iPhone storekit sandbox stopped working.
Hi.
I updated today to version 3.2.2 of the iPad iOS and I noticed that my In App Purchase testing was not working.
I am using a test account and everyhing was working until now (our app is already live since june and the real in app purchase works), but today I wanted to make a test purchase with the same product and test user that I always used and now it's not working.
The problem is as follows:
I start the in app purchase.
Confirm the purchase and sign in with the test user.
Because this is a non-consumable product the App Store notifies me, that I have already purchased this but it hasn't been downloaded.
Press OK.
Up until now the transaction observer got a transaction with the transactionState SKPaymentTransactionStatePurchased and the user got his/her in app feature.
But now the transactionState is SKPaymentTransactionStateFailed with the error:
Error Domain=SKErrorDomain Code=2 UserInfo=0x2debe0 "Cannot connect to iTunes Store"
Code=2 means SKErrorPaymentCancelled. WTF? This should happen if the user canceled the transaction, not in a real error. This is very misleading. I am not supposed to show this as an error because most of the time this is called if a user really cancels his/her purchase and there is no way to determine whether this error was caused by the user or by the App Store.
Everything is set up correctly, as I mentioned the in app purchase testing worked and I get the products as valid. Also I didn't change the code handling the in app purchase.
The error must be somewhere on the App Store side.
Does anyone else had this problem?
Thank you.
Update
I tested the app on the iPhone (it's a universal app) running iOS 4.0.2 and the error looks like this:
Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo=0x2620e0 {NSLocalizedDescription=Cannot connect to iTunes Store}
The Code=0 is SKErrorUnknown and the app displays an error to the user.
So it seems that iOS 4.0.2 handles this problem better than iOS 3.2.2.
I tested again and fortunately it seems that the problem is gone. I can test the in app purchase without any problems.
I hope it works now for others, too.