Add In App Purchases in 4 Easy Steps with RevenueCat (SwiftUI / iOS)

  Рет қаралды 24,760

CodeWithChris

CodeWithChris

Күн бұрын

Пікірлер: 101
@CodeWithChris
@CodeWithChris 4 жыл бұрын
RevenueCat makes it easy to add in app purchases to your SwiftUI app! Get a free account here: codewithchris.com/rcat
@join4te
@join4te 4 жыл бұрын
This is the content I want to see!!!
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Yay, awesome! :-) -Arthur
@Shqtucke
@Shqtucke 4 жыл бұрын
Yes, I would love to see how you built it...
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Stay tuned, Shawn! Thanks for the support! :-) -Arthur
@graffitiplanet283
@graffitiplanet283 4 жыл бұрын
be great to see how you built the meditation app Chris, with the audio samples and being able to purchase the full audio track. Thanks for all your great tutorials!
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thanks for your suggestion and support! We appreciate you! :-) -Arthur
@Steven-gq4dj
@Steven-gq4dj 2 жыл бұрын
If you get an error when trying to install the pods and you are on an apple silicone machine try opening terminal with rosetta 2. It fixed the issue for me
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hi Steven, thanks for sharing! - Pat
@nofx714
@nofx714 4 жыл бұрын
Hello Chris, Id really like to see how you made that app layout in the future!
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Stay tuned, thanks for watching! :-) -Arthur
@williammooney3389
@williammooney3389 4 жыл бұрын
Brilliant vid. I would like to see how you built the app too.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
We will work on it, thanks for watching, William! :-) -Arthur
@alexanderbetanzos5690
@alexanderbetanzos5690 4 жыл бұрын
Excellent video, Cris, could you explain in a video how to make in-app payments but with no consumables? Congratulations, as always good content
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hey Alexander, could tell me a bit more? This video went through non-consumable in app purchase which sounds like what you need?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thank you for watching and for you kind words :)
@danno5645
@danno5645 4 жыл бұрын
Great video! Super helpful! I’d love to see how to build out the whole meditation app with SwiftUI. Showing how to integrate the data with a local Json file would be super helpful as well. My goal is to build a business around my app idea, so being able to monetize it with something like RevenueCat is key. Most of my app idea is built out in SwiftUI. Getting RevenueCat working, and having it work with my data in my local Json file is where I have been stuck. I’m going to go through this video again now that I have finished it, and try and get the features added to my app. I’m really excited to see additional videos on this subject and again I would love to see how to build the entire meditation app! Thanks so much!
@danno5645
@danno5645 4 жыл бұрын
Also, one question. Does the app delegate not have to be added back in on the “app” file?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
"Hello, since its. SwiftUI theres no ""appdelegate"" file,, that is why in the video we added an Init method in order to simulate an ""appdelegate"" file run - Francis"
@kentiew7
@kentiew7 4 жыл бұрын
Can you show us how to build this app from the beginning?thanks
@CodeWithChris
@CodeWithChris 4 жыл бұрын
We'll do our best, thank you for your support! :-) -Arthur
@onboardwithpaul
@onboardwithpaul 4 жыл бұрын
good morning! great video, yes please I would like to see how this app was built thanks!!
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Awesome, stay tuned, Paul! :-) -Arthur
@GenZRadio234
@GenZRadio234 3 жыл бұрын
Your my hero! Thanks for the brief lesson!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Wow, thank you so much, Jared! Means a lot! -Arthur
@davidpelletier7475
@davidpelletier7475 3 жыл бұрын
Awesome step-by-step video, once again. 👌🏻
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Thank you so much, David! -Arthur
@kalteaches7035
@kalteaches7035 4 жыл бұрын
he is the best i wish i can thank him in real life
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Now here I am thanking you for being an awesome supporter. :-)
@eumakapp3221
@eumakapp3221 3 жыл бұрын
Do you have any plans to make paid full courses on “in-app purchases with SwiftUI”? If you make it, I really want to take it.
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Hello, thanks for your suggestion! Kindly post it here so that it gets properly documented: app.productstash.io/codewithchris#/ideas -Arthur
@mjoctavio3730
@mjoctavio3730 2 жыл бұрын
Thanks Chris! Great Tutorial as always. Btw, "import Purchases" is now changed to "import RevenueCat" in version 4
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks for the info and thank you for watching! - Pat
@bci.
@bci. 4 жыл бұрын
Yeah. Can you please show how you built the app?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Watch our playlist of Swift tutorials here in our channel. :-) -Arthur
@jayeshpateltelearglass
@jayeshpateltelearglass 3 жыл бұрын
Hello Chris, Yes for App Store App.
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Thanks for dropping by, James! :) -Arthur
@Chestozo
@Chestozo 4 жыл бұрын
Chris thank you so much for another great video! and for making our path to iOS development so nicely guided! 👍
@CodeWithChris
@CodeWithChris 4 жыл бұрын
You are so welcome! Thanks for learning with us! :-) -Arthur
@ChristianHollmannAI
@ChristianHollmannAI 4 жыл бұрын
Hi Chris, I would like to see the creation of the App
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Watch our playlist of Swift tutorials here in our channel. :-) -Arthur
@chrometaweb
@chrometaweb Жыл бұрын
Hi chris! where do I find the code at 23:51 and so on? Also, would like a tutorial on this before making the purchases video please, Thank you
@enricobansemer3670
@enricobansemer3670 4 жыл бұрын
Good instruction, thank you. Please put your portrait in lower left corner, there is nothing important in Xcode. Your portrait overlaps in much of your videos important part of code. For a non-English beginner it is difficult to follow (e.g. at 27:30). And yes, its too much ads.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thanks for your valuable feedback, Enrico! :-) -Arthur
@eumakapp3221
@eumakapp3221 3 жыл бұрын
Kris! Thank you for the good lecture. Maybe, I think this lecture seems starting from the middle part. If I take this "Courses", can I study the previous lecture?
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Hello, best if you start here so that everything will flow logically: codewithchris.com/start -Arthur
@adamrohr4085
@adamrohr4085 3 жыл бұрын
How does the app remember if the user have purchased something after restarting it? Will it do that automatically or do you have to do something for it to remember? Kinda new to swift :/
@CodeWithChris
@CodeWithChris 3 жыл бұрын
"Hello, you can use the revenue cat API to be able to query it everytime if the user has made a purchase.. or you could save it locally using a database like CoreData,, or you can even save it in as simple as UserDefaults - Francis"
@water2800
@water2800 3 жыл бұрын
Thanks, very helpful.
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Great to know. Thank you so much! -Arthur
@clayfulgham21
@clayfulgham21 3 жыл бұрын
Great Demo! Thanks!
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Yay, thanks, Clay! -Arthur
@Melo047
@Melo047 4 жыл бұрын
Please make a video on how you made this app
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Awesome, Derrick! We'll do our best! :-) -Arthur
@viksviks7070
@viksviks7070 4 жыл бұрын
Hi Chris, mind-blowing video, exactly what i searched for! One question though. Could you share an example how to implement the restore purchase method, when the user has changed his phone for example.Thank you very much.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
"Hello, sadly we are done with this video series but ill put in note if ever it gets revisited,. i suggest to check official documentation for now or ask revenuecat support for help on the right direction - Francis"
@chris_bennett
@chris_bennett 4 жыл бұрын
You mentioned that, because this is a demo, you update the dictionary to store the fact that the user has made the in-app purchase. How would one go about doing that in an app designed to be sold on the App Store?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hello, if its a real app then it is advisable to save the data to a database, might i suggest a cloud database like firebase? here is a tutorial its a bit outdated in terms of installing but the core is the same kzbin.info/aero/PLMRqhzcHGw1ZsFRLAWa_Axx7daXteynjh - Francis
@jordacheh4076
@jordacheh4076 2 жыл бұрын
please make or show us how to build the whole app thanks
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hey there! We have a video for that :) kzbin.info/www/bejne/oJ_Me5iXosh8i7c&lc= - Pat
@Mahadev-x7u
@Mahadev-x7u 4 жыл бұрын
Great video.... Thank you Chris
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thanks as well, Andrej! :-) -Arthur
@ricksciorra220
@ricksciorra220 4 жыл бұрын
I would love to see how you built it.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Stay tuned, Rick! :-) Thanks for watching. -Arthur
@LukasLukas-kr7oy
@LukasLukas-kr7oy 4 жыл бұрын
One question: Is the purchase saved when I close the app and restart it?
@Greenstonemovies
@Greenstonemovies 4 жыл бұрын
In this model not, because the app doesn't persistently store the purchase data with e.g. Core Data. It is only saved in a dictionary variable, which gets re-initialized every time the app is run. So to "save the purchase" you would have to persistently store the purchase with UserDefaults or Core Data. Hopt it helps :)
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thanks for helping each other out! Keep on learning and having fun! :-) -Arthur
@LukasLukas-kr7oy
@LukasLukas-kr7oy 4 жыл бұрын
Thanks
@johnpill1
@johnpill1 2 жыл бұрын
Hi Chris, I’m planning on building my first proper app soon with a subscription. Do you think you should start by adding the subscription functionality at the start of the project, or could you build the whole app then add the subscription functionality in right at the end by adding an initial login type screen and then building out a sort of check before opening the app?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hi John! You can post this on our CodeCrew forum codecrew.codewithchris.com and have our tech support staff assist you. Thank you! - Pat
@gordonhaviland7551
@gordonhaviland7551 4 жыл бұрын
Thank you very very much Chris :)
@CodeWithChris
@CodeWithChris 4 жыл бұрын
You are so welcome, Gordon! Keep on being awesome! :-)
@VishwasPethe
@VishwasPethe 4 жыл бұрын
Please show us how you built the Meditation app
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Great suggestion! We'll see what we can do! :-) -Arthur
@rafatwasef8518
@rafatwasef8518 3 жыл бұрын
Chris I am new how to integrate pay view controller with my main app view controller Like it is just separate view controller if the customer paid it will go to my main story board directly or need some links Thanks
@CodeWithChris
@CodeWithChris 3 жыл бұрын
Hello, best to post your question in our CodeCrew forum so that our tech support staff can assist you: codecrew.codewithchris.com. Thank you! -Arthur
@JoelvanBodegraven
@JoelvanBodegraven 4 жыл бұрын
Thanks Chris, super helpful! Any chance you can share the source code with us? Would love to dive deeper into your logic.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
We're working on it, thanks for your support, Joel! :-) -Arthur
@CodeWithChris
@CodeWithChris 4 жыл бұрын
"Hello, here is a github link for. the source code for it, enjoy :) github.com/codewithchris/revenuecat-subscription-demo - Francis"
@Autruo
@Autruo 3 жыл бұрын
Hi bro, I have an e-learning website that uses third party payment option, at the moment my app is been rejected on a ground of In-app purchase, please how can I link the third party merchant payment with apple in-app purchase, "I mean when I click on pay it should pop up the IAP mechanism" Thanks
@CodeWithChris
@CodeWithChris 3 жыл бұрын
"Hello, i think you should use apple's own in-app purchase then not your old one,, try looking at storekit if it helps - Francis"
@kaipohl4819
@kaipohl4819 4 жыл бұрын
Hey Chris, enjoyed this one as well as the other one on in-app purchases you did earlier. Thanks a million!! Quick question, at around 23:00 you talk about using an init function in your xxxApp.swift file to initialise the RevenueCat capability. Instead of this I put the relevant Purchase method calls into an onAppear attached to my main ContentView that is called in the WindowGroup closure of the body. This seems to work too but I am wondering if there could be a problem with this? Your thoughts would be appreciated. Thanks.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Hello, should be fine but "willAppear" will be called again once you change screen and then go back to it, so it doesn't only run "once" unlike when you do it at viewDidLoad() which is the "init" of the viewcontroller - Francis
@BenjiM2003
@BenjiM2003 4 жыл бұрын
Where can I find the source code so I can follow along with the video?
@CodeWithChris
@CodeWithChris 4 жыл бұрын
We're working on it, thanks for watching! :-) -Arthur
@CodeWithChris
@CodeWithChris 4 жыл бұрын
"Hello, here is a github link for. the source code for it, enjoy :) github.com/codewithchris/revenuecat-subscription-demo - Francis"
@BenjiM2003
@BenjiM2003 4 жыл бұрын
@@CodeWithChris thank you!
@dr.asimali4263
@dr.asimali4263 4 жыл бұрын
Can you give the sample code please(the one you used)
@CodeWithChris
@CodeWithChris 4 жыл бұрын
We're working on it, thanks for your support! :-) -Arthur
@CodeWithChris
@CodeWithChris 4 жыл бұрын
"Hello, here is a github link for. the source code for it, enjoy :) github.com/codewithchris/revenuecat-subscription-demo - Francis"
@devhopes
@devhopes 4 жыл бұрын
I would like to see you build this meditation app Please!
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thanks for your suggestion! :-) -Arthur
@BestSolutionsAccounting
@BestSolutionsAccounting 4 жыл бұрын
I want to see
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Stay tuned! :-) -Arthur
@drdax
@drdax 2 жыл бұрын
I just spent hours trying to figure out why "import Purchases" wasn't working. It's because it has changed to "import RevenueCat". Just to save others some time
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks for this helpful tip! :) -Arthur
@haliskara2879
@haliskara2879 4 жыл бұрын
you should write everything on video or you should share your source code i did not get anything from this absolute mess
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thanks for your feedback!
@chrometaweb
@chrometaweb Жыл бұрын
agreed
@RobertHolzapfel
@RobertHolzapfel 4 жыл бұрын
Sorry, but the number of ads is too much, a torture ... stopped after three, when I saw there is even more ... end this subscription, sorry.
@CodeWithChris
@CodeWithChris 4 жыл бұрын
Thanks for the feedback!
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Easy Paywalls and Experiments Using RevenueCat
22:18
CodeWithChris
Рет қаралды 7 М.
From Idea to App: Build this App Step by Step
1:56:17
CodeWithChris
Рет қаралды 8 М.
Quick & Easy Paywalls in Your Apps with RevenueCat | SwiftUI
30:37
Jason Dubon
Рет қаралды 4,3 М.
React Native - Add In-APP Purchases to iOS in 5 easy steps
26:21
Code with Gigi
Рет қаралды 36 М.
Easily Make Money with Apps (SwiftUI RevenueCat Tutorial)
20:09
Logan Koshenka
Рет қаралды 8 М.
RevenueCat Products, Offerings, and Entitlements Explained
5:03
I Made an iOS App in MINUTES with This AI Tool!
13:20
Creator Magic
Рет қаралды 703 М.
How to implement In-App Purchases using StoreKit in Swift?
30:38
R&D Labs with Rohant
Рет қаралды 11 М.
Add Subscriptions To Your REACT NATIVE Apps Using REVENUE CAT
24:45