Hello, thank you for your time.
I have run into a problem, which is effecting some of my customers. It seems like StoreKit is having trouble connecting to app store.
My code is this
func bounceStartSubscriptionPurchase() {
EventLogger.shared.logEvent(type: "Subscription", name: "StartSubscription")
isActive = true
isPurchasing = true
_isRestoring = false
if let oldRequest = productsRequest {
//If the old request is still alive, kill it
oldRequest.cancel()
oldRequest.delegate = nil
productsRequest = nil
}
StoreManager.postNotification(.purchaseBegin)
productsRequest = SKProductsRequest(productIdentifiers: ["hidden"])
productsRequest!.delegate = self
productsRequest!.start()
}
It works fine on my iPhone 5 with iOS 12. With my iPhone X on iOS 13.x, it is failing. Restore purchases seems to at least prompt for a login. The regular purchase will not even prompt for a login if I am not signed in (on sandbox or normal account) - it simply fails in less than 1 second.
Error is this:
Failed Error: Cannot connect to iTunes Store
Some printouts:
canMakePayments = true
does have product = true
request <SKProductsRequest: 0x281c3a300>
requestDidFinish
Update Transaction
Failed Error: Cannot connect to iTunes Store
I have run into a problem, which is effecting some of my customers. It seems like StoreKit is having trouble connecting to app store.
My code is this
func bounceStartSubscriptionPurchase() {
EventLogger.shared.logEvent(type: "Subscription", name: "StartSubscription")
isActive = true
isPurchasing = true
_isRestoring = false
if let oldRequest = productsRequest {
//If the old request is still alive, kill it
oldRequest.cancel()
oldRequest.delegate = nil
productsRequest = nil
}
StoreManager.postNotification(.purchaseBegin)
productsRequest = SKProductsRequest(productIdentifiers: ["hidden"])
productsRequest!.delegate = self
productsRequest!.start()
}
It works fine on my iPhone 5 with iOS 12. With my iPhone X on iOS 13.x, it is failing. Restore purchases seems to at least prompt for a login. The regular purchase will not even prompt for a login if I am not signed in (on sandbox or normal account) - it simply fails in less than 1 second.
Error is this:
Failed Error: Cannot connect to iTunes Store
Some printouts:
canMakePayments = true
does have product = true
request <SKProductsRequest: 0x281c3a300>
requestDidFinish
Update Transaction
Failed Error: Cannot connect to iTunes Store
--- Transaction => Failed