SKProductRequest returns SSErrorHTTPStatusCodeKey 404

I am doing SKProductRequest using MKStoreKit (v5). I am doing SKProductRequest for a product that has already been approved in the app store, but I get an error message. In particular:

Error Domain=SSErrorDomain Code=109 "Cannot connect to iTunes Store" UserInfo=0x171262140 {NSLocalizedDescription=Cannot connect to iTunes Store, SSErrorHTTPStatusCodeKey=404 

What confuses me the most is the SSErrorHTTPStatusCodeKey 404 . Product / IAP was created in itunes connect. I also logged out of my personal itunes user account. I am sure that he makes a request to the itunes sandbox, because I have MITM'd, and he makes a request there. However, the request fails due to SSL issues when MITM'd.

EDIT: Product identifiers made with SKProductsRequest are definitely approved and definitely match product identifiers in iTunes Connect

+8
ios in-app-purchase
source share
4 answers

So, I spoke with Apple about the high level of support on this issue. Obviously, in older versions of iTunes Connect, you can make the application package identifier the same if they have never received approval. There were several applications in the account, one of which had the same package identifier as the application in question. After changing the application package identifier, everything worked.

Interestingly, iTunes Connect no longer allows you to select the same package identifier (explicit) as another application, even if it is not approved. Another interesting point is that applications have the same package identifier since 2010. You do not know why this problem appeared now.

In addition, we were unable to submit this issue. Once this was fixed, we were able to file. Apple officials said they had never seen anything like it. Probably because so few applications that were relevant in 2010 when the old iTunes Connect interface was around to resolve this type of error are still relevant.

After a good week, headers on my keyboard are fixed and in good working order.

0
source

Simulator

Simulator> Reset Contents and Settings ...> Reset

Device

App Settings> iTunes and App Store> your account > Logout


MKStoreKit Tutorial

Create a sample project with which you can try to customize In App Purchase. Give this project the same identifier as the current one so you can verify your setup.

Podfile

  pod 'MKStoreKit' 

Bridging header

 #import "MKStoreManager.h" 

MKStoreKitConfigs.plist

 <plist version="1.0"> <dict> <key>Non-Consumables</key> <array> <string>com.swiftarchitect.consumable</string> </array> <key>SharedSecret</key> <string>8bac1a72e7f91c48123273b0a6d5ec09</string> </dict> </plist> 

AppDelegate.swift

  let sk = MKStoreManager.sharedManager() print("\(sk)") 

Xcode> Target> Features

enter image description here

0
source

404 is a network error and it says, "Cannot connect to the iTunes Store." Are you on a simulator? Device? do you have a firewall network problems? can the application access network in general?

0
source

I was just experimenting with this problem. My application was accepted and available on the AppStore, but not on the App Purchase 😱

When running on Xcode, I got the SSErrorHTTPStatusCodeKey 404 error, since my application was accepted (not earlier)

After research, I think I found a solution: for IAP first , the purchase of the application in the application should be added on the application page (iTunes Connect> My App> App version>), and then "In-app purchases" in the right panel (only under "General Information")

Add your IAP here

I am currently hosting an application, I will post right here if it works.

0
source

All Articles