SwiftyStoreKit
SwiftyStoreKit copied to clipboard
Completion on success purchase is not call-backed on iOS 17 simulator
Bug Report
- Completion is not call-backed on iOS 17 when it succeeds in purchasing an auto-renew subscription by
purchaseProduct()
. - Besides, the purchase view (sheet) appears again and again and again.
- If I close the purchase view (sheet), the completion is call-backed with the error of canceling the purchase.
To Reproduce
- Purchase the auto-renew product by the
purchaseProduct()
- Sign in to the Sandbox Apple account
Expected behavior
Completion is call-backed when it succeeds in purchasing on iOS 17
Platform Information
- OS: iOS 17
- Purchase Type: auto-renewable subscription
- Environment: sandbox
- SwiftyStoreKit version: 0.16.4
- Xcode: Version 15.0 beta 7 (15A5229h)
I tried StoreKit2 to purchase the same product and it does the same as this issue (doesn't return the success result and the purchase sheet appears again), so it's most probably the Xcode beta and iOS 17 issue 😕
do {
let products = try await Product.products(for: ["my product ID"])
let result = try await products.first?.purchase()
print(result)
} catch {
print(error.localizedDescription)
}
Please test with real device
I confirmed nothing changed on Xcode 15 beta 8 (15A5229m).
@monkeyRing I don't have a device that can install iOS 17, so It would be appreciated if you could test it.
I tested it with the physical device iPhone SE 3rd that iOS 17 public beta 6 installed, and the issue did not reproduce. So it is probably only the issue for iOS 17 simulators.
Feel free to close the issue in case it should be. Thanks.
I ran into a similar problem and it worked fine using the real machine