Open torufuruya opened 1 year ago
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
Bug Report
purchaseProduct()
.To Reproduce
purchaseProduct()
Expected behavior
Completion is call-backed when it succeeds in purchasing on iOS 17
Platform Information