Post

Replies

Boosts

Views

Activity

loadProduct method callback not getting error correctly when using SKStoreProductViewController on iOS 17 beta
Description When I try to use SKStoreProductViewController to display the product page, the parameters parameter of the loadProduct method passes in an illegal SKStoreProductParameterITunesItemIdentifier, but the result in the completionBlock still shows success, and the error is nil. Actually I noticed this problem exists from the first beta version of iOS 17 to the current latest beta version (beta 6). code Here is the minimal reproducible code: var parametersDictionary = [SKStoreProductParameterITunesItemIdentifier: "***"] let store = SKStoreProductViewController() store.delegate = self store.loadProduct(withParameters: parametersDictionary) { (result: Bool, error: Error?) in print("Result : \(result), Error: \(error)") // Result : true, Error: nil } environment iOS 17.0 beta ~ iOS 17.0 beta 5 iPhone 12 Pro Xcode 15.0 beta ~ Xcode-15.0.0-Beta.6
4
0
947
Aug ’23