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 is sponsored by Proxyman.

SPONSORED Debug 10x faster with Proxyman. Your ultimate tool to capture HTTPs requests/ responses, natively built for iPhone and macOS. You’d be surprised how much you can learn about any system by watching what it does over the network.

Try Now!

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

Reply to this topic…

You need to create an account or log in to reply.

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.