GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

SwiftUI StoreKit with IOS 17

Forums > Swift

Has anyone implemented StoreKit 2 using the new views available in IOS 17?

Just added code to my app per the example in Tutorial https://www.hackingwithswift.com/quick-start/swiftui/how-to-add-in-app-purchases-in-swiftui.

Planning to add in-App purchases to my app, already in the app store.

I think it is working, still have lots more testing to do, but at the end of tutorial at the link above,

Paul says, "Be careful: that code alone isn’t enough, because one of the possible completion status is pending: the purchase is in the process of happening but hasn’t completed yet, so you still need to watch the transaction queue manually to be absolutely sure of handling the process completely." Where/how do I put the watch the transaction queue code?

But he doesn't say how to do it. I had previously gone through the tutorial from Ultimate Portfolio App, specifically for the inApp purchases, but not sure which if any of those examples still apply.

Any suggestions or pointers would be greatly appreciated.

3      

Hi,

The InApp purchase section of Ultimate Portfolio has recently been updated (for IOS16) the first part has been done, the second part is next to be updated. Could be worthwhile checking that section out, as it changed significantly from the previous version.

Its my understanding that IOS16 uses StoreKit2, but doesn't make use of the new IOS17 views.

3      

@Alee11, Thanks, sounds like the right track, I will check it out, any specification documentation or example that you can point to?

2      

@Alee11, Thanks, sounds like the right track, I will check it out, any specification documentation or example that you can point to?

2      

Hacking with Swift+

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and more!

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.