React Native - Add In-APP Purchases to iOS in 5 easy steps

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ค. 2023
  • In this tutorial I will show you how to add in-app purchase capability to your iOs apps. I will demo adding a monthly subscriptions step by step.
    Refer to my link for the code and full instruction.
    To test the in app purchase with the sandbox tester on your device, iPhone or iPad, you'll need to sign in with the sandbox user in your device settings. General - App Store and scroll down to Sandbox Users.
    www.codewithgigi.com/how-to-s...
    react-native-iap docs
    github.com/dooboolab-communit...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 79

  • @tarsisprofile
    @tarsisprofile ปีที่แล้ว +1

    Thanks Gigi, your tutorial was very useful for me

  • @codewithsthef
    @codewithsthef 8 หลายเดือนก่อน +1

    Thank you so much for sharing your knowledge! Amazing video!

  • @muhammetkaba2466
    @muhammetkaba2466 9 หลายเดือนก่อน

    Thank you, thanks to you, I completed this part quickly.

  • @WanderAugusto
    @WanderAugusto 5 หลายเดือนก่อน

    Perfect tutorial, helped me a lot. Your voice is sweet and explains very well, I, who have difficulty understanding, managed to understand your explanation very well. Congratulations.

    • @codewithgigi
      @codewithgigi  5 หลายเดือนก่อน

      Glad it helped!

  • @harshgadhecha132
    @harshgadhecha132 9 หลายเดือนก่อน +6

    Your guidance was excellent, Gigi, and it really helped me with iOS in-app purchases. Can you consider making a video tutorial for React Native in-app purchases on Android? It would greatly benefit

  • @HueyMataruse
    @HueyMataruse ปีที่แล้ว +3

    Nice tutorial, keep going!!!

  • @AdilCalomenoJunior
    @AdilCalomenoJunior ปีที่แล้ว +4

    Great tutorial Gigi! I've been working for 2 hard weeks to develop in-app subscription in an existing application. The internet articles are too old or not so clear, tour tutorial is very good!

    • @codewithgigi
      @codewithgigi  ปีที่แล้ว

      Glad to hear it and thanks for sharing @AdilCaomenoJunior

  • @fourlokouva
    @fourlokouva 11 หลายเดือนก่อน

    Thanks for sharing this! FYI you don’t need a MacBook just any Mac that will run Xcode, preferably Monterey OS or newer to ensure you are running v14+ without any hiccups 😊

  • @trinkess
    @trinkess 7 หลายเดือนก่อน

    Thanks for the clear and concise steps for implementing IAP. I checked other 3rd parties like RevenueCat and Nami but they try to monetize if you bring in a certain amount of income from the app. I think its best to implement in-house iap architecture to reduce costs from 3rd party iap. Thanks again for the great tutorial.

  • @gurwindersingh1359
    @gurwindersingh1359 ปีที่แล้ว

    Great!!
    But' I jhave one question, How we can make subscription for user specific

  • @user-gb9is3mv9r
    @user-gb9is3mv9r 10 หลายเดือนก่อน

    i have followed your instructions ,
    it is working but not getting proper status like- it is activate or not , and what is my current plan
    and how can be check with amount deductions
    like how can be check with real payment

  • @unstopp
    @unstopp หลายเดือนก่อน

    Thank you!! It actually worked lol, I was sceptical. Is there a place inside apple dev's dashboard to see the current subscriptions or to cancel a subscription?

  • @formify949
    @formify949 ปีที่แล้ว

    Thanks Gigi

  • @jackanderson300
    @jackanderson300 4 หลายเดือนก่อน

    Ma'am Thanks for this cool video,Need one suggestion
    In my app their is consumable products .When app uninstall it cant be restore.So how to manage this with our server?
    like once user buy consumable product then we will update that with our server and when user install app again and do login then we will get that consumable product using user_id.
    Is it correct way for consumable product?Please help.

  • @velhoonp
    @velhoonp 10 หลายเดือนก่อน

    Hi can you make a video, how to do in-app purchase with chargebee

  • @user-wl3nm3df5k
    @user-wl3nm3df5k 6 หลายเดือนก่อน

    Great. Thanks. Subscribed

    • @codewithgigi
      @codewithgigi  5 หลายเดือนก่อน

      Thanks for the sub!

  • @user-gb9is3mv9r
    @user-gb9is3mv9r 10 หลายเดือนก่อน

    just i want to know how can be check my current plan or status

  • @westeusindomitable8455
    @westeusindomitable8455 11 หลายเดือนก่อน

    I am using my own auth (FireBase). I want to save the subscribed users with their mail in firebase. Is it possible to do that.

  • @user-lm2no9dc4i
    @user-lm2no9dc4i 7 หลายเดือนก่อน

    how to handle same apple id but different emails for subscriptions ?

  • @kashif2309
    @kashif2309 2 หลายเดือนก่อน

    thank you so much!

    • @codewithgigi
      @codewithgigi  2 หลายเดือนก่อน

      You're welcome!

  • @fiscalizacao
    @fiscalizacao 3 หลายเดือนก่อน

    Muito bom, você me deu uma ajuda imensa! eu estava tentando entender o que era SKU no iOS, pois é diferente do Android, vendo seu vídeo, consegui fazer aqui e funcionou! Muito obrigado!!

  • @JamalVlogs
    @JamalVlogs ปีที่แล้ว

    Great tutorial Gigi! where we can see the successful payment of sandbox account in app connect?

    • @codewithgigi
      @codewithgigi  ปีที่แล้ว

      @JamalVlogs I don't know that you can see this in app store connect. Once a sandbox user has made a successful purchase, the useIAP() should return a purchaseHistory for your sandbox user.

  • @devgaud
    @devgaud ปีที่แล้ว

    How to get the user details?

  • @hellopanther1
    @hellopanther1 8 หลายเดือนก่อน

    Why you didn't used init connection in this app

  • @hellopanther1
    @hellopanther1 8 หลายเดือนก่อน

    Can you pls post for in app purchase subscription for android

  • @aleksamitic6655
    @aleksamitic6655 2 หลายเดือนก่อน

    Hello Gigi! Thanks for this wonderdful tutorial. I am looking to integrate this on my app. I am interested did you encounter any issues in production with this approach? I was investigating a lot should I use this library or maybe something like revenueCat what are your thoughts on that?

    • @codewithgigi
      @codewithgigi  2 หลายเดือนก่อน

      Hi @aleksamitic6655 I have not had any issues in app store. I did not use revenueCat because its not free and I found their documentation to be lacking

  • @GameCrawl
    @GameCrawl หลายเดือนก่อน

    Could you create a tutorial for Android IAP?

  • @pakrutam
    @pakrutam 6 หลายเดือนก่อน

    Thank you for great tutorial. Do I need to submit app for review to make this work? my app status is "Ready to Submit". Will it work for testing purpose without submitting?

    • @codewithgigi
      @codewithgigi  5 หลายเดือนก่อน

      You can test in your iOS device before you submit it.

  • @TheRonron1994
    @TheRonron1994 2 หลายเดือนก่อน

    How about for Android?

  • @user-td4ww4ug4l
    @user-td4ww4ug4l 4 หลายเดือนก่อน

    ONE WEEK AGO ITS DISPLAY IN RUPEES , RIGHNOW ITS DISPLAY IN DOLLAR WHY ?

  • @SomTechnoWorld
    @SomTechnoWorld ปีที่แล้ว

    I have created e-learning app using rozerpay integration but Apple store rejected the app. How to implement in app purchases where there are multiple programs.

    • @codewithgigi
      @codewithgigi  ปีที่แล้ว

      @SomTechnoWorld You can add multiple products to your subscription group in apple developer account. Then in your code, you would add all the products you want to make available to users like the example code below, replacing productid-1 with your actual product id from your apple developer account...
      const subscriptions = Platform.select({
      ios: ["productid-1". "productid-2"],
      });

    • @SomTechnoWorld
      @SomTechnoWorld ปีที่แล้ว

      @@codewithgigi thanks i will try this

  • @dummylivestream8127
    @dummylivestream8127 9 หลายเดือนก่อน

    code cant not redeem error

  • @formify949
    @formify949 ปีที่แล้ว

    i m getting rejection from apple store is : ..........When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code “Sandbox receipt used in production,” you should validate against the test environment instead.

  • @christiansouza2872
    @christiansouza2872 ปีที่แล้ว +1

    Great tutorial!!
    I get the following error when starting my app: E_IAP_NOT_AVAILABLE, do you know what can solve it?

    • @codewithgigi
      @codewithgigi  ปีที่แล้ว

      @christiansouza2872 it could be a number of things, 1. Your device may not support IAP. check the iOS version. It should be a real device not a simulator. I have not been able to test on simulators. 2. Network issue - device is not connected to internet and can't connect to apple developer api. 3. make sure your subscriptions are setup correctly and are "ready to submit" in your apple developer account.

    • @khubaibidrees4900
      @khubaibidrees4900 ปีที่แล้ว

      I am having this same issue how did you resolve it?

    • @JamalVlogs
      @JamalVlogs ปีที่แล้ว +3

      I face the same issue, I solved this, you can't test this in simulator, for test this you need to connect with your physical device.

    • @gabriel61106
      @gabriel61106 6 หลายเดือนก่อน

      tem que dá um yarn ios para buildar dnv com ums recursos do react native iap, aí funciona

  • @pradhumansinhswb
    @pradhumansinhswb 5 หลายเดือนก่อน

    my old app already on appstore should i need to create another app or i can modify for same app ?

    • @TheRealPlug
      @TheRealPlug 5 หลายเดือนก่อน

      Its displayed on the subscriptions section that, to be ablte to activate your fust subscription you need to attach a ne app version for it.
      You don't need to create another app but you need to push a new build.

    • @codewithgigi
      @codewithgigi  5 หลายเดือนก่อน

      You can update your app. You need to update your code and your settings in developer account.

  • @mutesimba3393
    @mutesimba3393 9 หลายเดือนก่อน

    This code is not working properly

  • @siddhant_arekar
    @siddhant_arekar 8 หลายเดือนก่อน

    is there any way we can test the purchase flow using simulator?

    • @codewithgigi
      @codewithgigi  8 หลายเดือนก่อน

      Not that I know of. I haven’t tried lately.

    • @siddhant_arekar
      @siddhant_arekar 8 หลายเดือนก่อน

      @@codewithgigi Thank you for the reply, i tested it on real device and submitted the application for app store review but apple team rejected it saying restore button is required to restore the purchase in case of device is changed, do you have any video or documentation for such implementation. It would be a great help if you do.

    • @omarkhle
      @omarkhle 7 หลายเดือนก่อน

      i have tried the exact same code. but am still getting an empty list of subscriptions, even tho i have the correct product SKU on the ios. Any Help Pleaes !!

  • @TheErudito
    @TheErudito 4 หลายเดือนก่อน

    And react native CLI on Android

  • @felixmilome
    @felixmilome ปีที่แล้ว

    Do you have one for android?

    • @codewithgigi
      @codewithgigi  ปีที่แล้ว +1

      @felixmilome Not yet. Coming soon.

  • @zedcodinacademibychinvia9481
    @zedcodinacademibychinvia9481 5 หลายเดือนก่อน

    does this work in android

    • @codewithgigi
      @codewithgigi  5 หลายเดือนก่อน

      Not this specific instruction. But you can use the same library in android. It’s even easier than iOS.

  • @OALKeller
    @OALKeller ปีที่แล้ว +1

    subscriptions in useIAP hook is always empty on my end, what's the problem?

    • @codewithgigi
      @codewithgigi  ปีที่แล้ว

      @OALKeller check that your subscription skus match the product id in app store connect.

    • @dangogu
      @dangogu 8 หลายเดือนก่อน

      i'm also facing the same issue. how did uyou resolve this issue?

    • @omarkhle
      @omarkhle 8 หลายเดือนก่อน

      Me too , any help please ???

    • @baon.9197
      @baon.9197 20 วันที่ผ่านมา

      me too, it's empty. It's easy to check sku matched product id so it may be not my problem

  • @formify949
    @formify949 ปีที่แล้ว

    @gigi everytime my app getting reject from apple store can we connect on skype or google meet so that you can help me ?

  • @melorinmom
    @melorinmom 9 หลายเดือนก่อน

    very good thank you but speak so slowly :(

  • @formify949
    @formify949 ปีที่แล้ว

    i m getting error.......CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'RNIap' from project 'Pods'

    • @codewithgigi
      @codewithgigi  ปีที่แล้ว

      @formify949 It's hard to know without the full build logs, which can be found in the "Report Navigator" pane in Xcode.
      Some possible solutions that may help
      1. Make sure you have the latest Xcode and React native.
      2. Clear the build cache by deleting the contents of the `DerivedData` folder. The default location is `~/Library/Developer/Xcode/DerivedData`.
      3. Try clearing your build folder in Xcode and re-run the build. Try building on your device after clearing the build.
      4. Try to manually resetting the Swift toolchain by running the following command in your terminal:
      sudo xcode-select --reset

    • @formify949
      @formify949 ปีที่แล้ว

      @@codewithgigi its resolved it was IAP package version issue

  • @formify949
    @formify949 ปีที่แล้ว

    const isTestEnvironment = __DEV__;........... what is this __DEV__ @Gigi

    • @codewithgigi
      @codewithgigi  ปีที่แล้ว +1

      @formify949 Good question. That's to let apple know its a test purchase not a real purchase and it'll validate using sandbox user. You can remove isTestEnvironment from production code.

    • @formify949
      @formify949 ปีที่แล้ว

      @@codewithgigi ok Cool thanks