How To Use In-App Purchases with StoreKit 2
Vložit
- čas přidán 26. 08. 2024
- In this video, we are going to implement a simpler solution for adding in-App purchases to your app using modern concurrency and async patterns from Swift.
Buy Me Coffee
buymeacoffee.c...
We are going to cover the following topics
- the new Product API
- managing transactions
- listening for transaction updates
- testing in-app purchases in Xcode using storekit configuration files
- how the restore purchases work.
Source for this project available in my Github repo
github.com/olo...
Shot with Sony ZV-E10
amzn.to/3uVzPQt
Sigma 16mm f/1.4 DC DN
amzn.to/3AgH1d1
Rode MicroVideo Microphone
amzn.to/3ccVRYR
SanDisk 128GB Extreme PRO
amzn.to/3RF9gZD
My Workstation Setup
Macbook Pro 16 inch M1 Pro
amzn.to/3OdBqb7
Samsung 28-Inch 4K UHD Led-Lit Monitor
amzn.to/3Od1t27
USB C to HDMI Cable 4K
amzn.to/3REVpBe
Apple Magic Keyboard with Touch ID and Numeric Keypad
amzn.to/3Pwm6HF
FINALLY a store kit 2 tutorial on CZcams! It's amazing how there are so few store kit 2 tutorials on the internet.
I have been looking for weeks for a decent tutorial on store kit 2. Your video walked me through step by step with great detail and insights. Thank you!!
Thanks for the super! Much appreciated.
Thank you! The best video I could find is a comprehensive tutorial on how to implement in-app purchases in SwiftUI.
thank you ! Solved the problem that was bothering me Thank you so much for sharing.
Thanks!
How would I go about modifying this to be for a consumable item. I can’t find much information on the consumable side.
This is working for local StoreKit testing but isn't working for TestFlight. Are there any changes I need to do?
Hey, did you sole this? having the same issue
@@GuyCassidydid u fix it?
Great video sir, just wanted to say that you can query directly from the configuration file.
Yes, you are right
how?@@JustAnotherDangHowToChannel
Thanks. Does the same principles apply for consumable non subscription IAPs?
How can I handle auto renewable subscription with 1 month trial?
Good question, I haven't tried in storekit2, will give it a try and post another video.
Why does my iphone device did not prompt a sign in dialog when i tried to purchase a product? How can i test it with SandBox?
sign in is for the restoring of purchase i believe..
also can anyone give some clarity about on server (backend) validation in StoreKit 2? WWDC sessions have conflicting slides about the /verifyReceipt method, do we need to use it still? Then how to get a receipt in StoreKit 2?
Thanks for the video. How do you now host the pkg content package as Apple do not hold the packages on their server anymore? I came across this issue today when I decided to add another IAP package to my app.
Nice tutorial! How do you handle expired subscription?
that would be handled automatically too via the transaction update
Hi, thanks for the wonderful video. It helped a lot, but could you also teach us how to deal with consumable products? Are they really different?
That is something I might try to do a video for, in theory setup is the same but the additional logic is in the app for keeping inventory of purchased items and using them in your app/game.
Thank you. I've been trying similar approaches, but 'updateCustomerProductStatus' function at this video won't catch 'unfinished' consumable purchases, so I am kind of stuck appending these consumable products to an array. Would be greatly appreciate if you can do a video about this, too! @@JustAnotherDangHowToChannel
If you know how to get the first installed date of app in a device, please show me how. Thank you very much.
i am getting rejected about 40 times if you can help i would really appreciate it brother
Hello! A very clear video! But I have one question: how can I add pictures according to the product?
Thanks! If images are locally stored in your project you could probably name it as the display name or maybe even the product identifier.. Image("com.demo.image")
@@JustAnotherDangHowToChannel Thank you for your answer
How you do this in regular Swift and not Swift UI?
we want subsription tho
check my auto-renewable howto video if it helps - czcams.com/video/vk6B79dE3Lw/video.html
why "tutorial", should be: share what you have gained...
Fantastic video, thank you! Do you know why after a purchase has bveSubscriptionView() would flash for a half-second before displaying "Premium Content"?