How To Setup Auto-Renewable Subscription in Swift StoreKit2
HTML-код
- Опубликовано: 1 мар 2023
- Followup to the my storekit2 youtube tutorial. The following are covered in this repo demo.
- setting up auto-renewable subscriptions
- new product api, aysnc, managing transactions and verification
- listening for transaction updates
- testing in-app purchases in Xcode using storekit configuration files
Source for this project available in my Github repo
github.com/olopsman/storekit2...
Buy Me Coffee
buymeacoffee.com/pauloorquillo
Social
Twitter/X: / olopsman
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
Best tutorial I found so far in the past 2 days. Thank you so much
Thank you for explaining it step-by-step in this video and the In-App Purchase video as well. This really helped me better understand the example from Apple's WWDC video. Thanks again!
Thank you for creating this tutorial. Excellent and easy to understand step by step.
This helped a lot. Thank you for explaining and sharing!
Thank you for this! It was hugely beneficial for me.
Really good tutorial thank you for the help
This is exactly what I needed.
Thank you very much, works perfectly!
Thanks for doing this man.
Thank you for this great video :)
Thank You so much for this tutorial
Excellent video, thank you. Helped me out a lot. :)
Great video!
Thanks so much
great vid. quick, clear, and no BS. for the free trial on the monthly is that automatic or does something else need to be done?
I believe that's automatic, handled by Apple, since you're using StoreKit.
best video about storekit2, very very important in your app, the storekit server fails a lot!! can you do a video how to test, code defensively for the edge cases? (network error, products didn't load etc)
Hi, how do you open that window which you can delete transactions 1:34
Found it...Debug / StoreKit
“Drag that over here “ … what are you using for an external monitor?
Samsung 28 inch 4k monitor - amzn.to/3Od1t27
how to get into that Transaction management screen to delete transactions?
xcode -> debug -> storekit -> manage transactions
this works great in the simulator, and the App Store Connect website does recognize it (when trying to duplicate it says there is already one)...but when running on TestFlight nothing appears. Also failed app review for the same reason. Anybody got any ideas?
Maybe you didn't use a Store Kit Configuration instead of the products file? You can edit this in the scheme like he showed in the video.
@@hanswurst1 thanks for the reply. It ended up being that I had to add a subscription to appstore connect. Wait for it to update to apple account, then adding a storekit file to xcode that was synced to the appstore connect.
I'm guessing when he created the local storekit file, it was for testing purposes only. idk.
Also I got a yellow popup saying "Missing Metadata" for my subscriptions (another review failure)... What it doesn't say is that you need to add a picture to your subscription before it can even be ready to be reviewed with your app. I found the fix on a forum that is 7 years old
Passed Review! Don't forget Restore Purchases button!
func restorePurchases() { SKPaymentQueue.default().restoreCompletedTransactions() }
This will print purchases subscriptions ids for pop up message -- \(storeVM.purchasesSubscriptions.map{$0.description})
@@dakota5532 Hello, although I made all the settings in the app store connect, the person reviewing the application cannot take any action. However, if I add the configuration in the Run (Debug) section, it works in xcode but not normally.
@@dakota5532Honestly so helpful. Thank you!
I am also confused with how to check if the subscription is active or cancelled or in billing retry. I assume we need to have a different function to check the subscription status right?
i have the same Problem here. Also when the subscription expires, this method is not working. I’m trying to solve this problem with a subscription status function like vyou said. If you already got a solution I would be happy if you could share it.
@@lukef2952 I fixed it (I think), when the subscription expires I just need to check if the subscription is active when app goes to the background. I also use the listener func listenForTransactions() -> Task {. It’s exactly how apple ask us to do it. I plan to use RevenueCat for a project to see if it really helps to increae sales
What about restore purchases?
yes actually now days is. a must for apple , please if you know let us know
Hello there. Could you handle restore purchases management in your app? If you did can you help me please?
@@Shopanywant yes I did. Are you using storekit or storekit 2
how you handle appstore connect?
my question
too
choose subscription and add there
Thanks for the video. Very helpful