Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completion on success purchase is not call-backed on iOS 17 simulator #699

Open
torufuruya opened this issue Aug 24, 2023 · 5 comments
Open

Comments

@torufuruya
Copy link

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

  1. Purchase the auto-renew product by the purchaseProduct()
  2. 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)
@torufuruya
Copy link
Author

torufuruya commented Aug 25, 2023

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)
}

@monkeyRing
Copy link

Please test with real device

@torufuruya
Copy link
Author

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.

@torufuruya
Copy link
Author

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.

@800sea
Copy link

800sea commented Dec 31, 2023

I ran into a similar problem and it worked fine using the real machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants