React Native In-App Purchases (Android) - incl Backend and testers from scratch

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025

Комментарии • 113

  • @mantikhatasi
    @mantikhatasi 3 года назад +3

    probably only video on youtube actually explaining.

  • @tyrionmeredith69
    @tyrionmeredith69 3 года назад +9

    Absolutely brilliant! You’ve really helped me and my business integrate in app purchases on our app , thank you

  • @ToxiSniping
    @ToxiSniping 3 года назад +4

    Finally a complete tutorial with backend! Good job mate I appreciate it

  • @andyduncan5971
    @andyduncan5971 3 года назад +3

    I'm still using your two videos on 'in app purchases', every time I change the way we do subscriptions on our phone apps, nine months after initial release, so kudos to you. Thank you again for all the time and effort you took to produce them both. Absolute life saver.

    • @euanmorgann
      @euanmorgann  3 года назад +1

      Wow! Thank you and best of luck ☺️

  • @patlagoon
    @patlagoon 2 года назад

    huge THANK YOU for this tutorial. I would have never been able to implement iap without this video.

  • @muhammetgokturk3252
    @muhammetgokturk3252 3 года назад +1

    Kardesim adamsin adam o kadar yardimi dokundu ki anlatamam. Hi bro, I can't tell you how much you helped me. You are an amazing man.

  • @Duartebotero
    @Duartebotero 3 года назад +1

    Thank you for this!!! We just need now two more videos with a Web Stripe implementation and then a RevenueCat to synch all ...Thanks

  • @bloggerklik
    @bloggerklik Год назад +1

    Hi Euan, I'm thinking about finishing my app and publishing it in 2 months. Purchases have changed, I think, and I don't know how up-to-date this video is. I've integrated it into my "in app purchase" project by watching your videos before. It was truly a quality and complete guide. Are you thinking of making new content? Thanks 👍❤

  • @anothernumber9753
    @anothernumber9753 3 года назад

    Thank you so much!! this has been super helpful to me. I spent literally an entire day messing around with firebase backend. I was missing the google json thing and you having that really saved the day for me. thank you!

    • @learnto-codebymsy9884
      @learnto-codebymsy9884 3 года назад

      Hey. Can you help me out. I have done everything but I am stuck with the error from the backend, there has been an error with your purchase. It seems like my code is not going to the try part. Rather it is going to the catch part. I have been trying for a long time and could really use some help.

  • @iampain97
    @iampain97 2 года назад

    appreciate your effort for this video. just 1 hour video took months to make.

  • @maximilianonareacarvajal9240
    @maximilianonareacarvajal9240 Год назад

    Bro, thanks for your time! This video helped me a lot :)

  • @alejandroklever
    @alejandroklever 7 месяцев назад

    You saved me hours of work. Thanks a lot 😁🙌

    • @JamesUkoli
      @JamesUkoli 6 месяцев назад

      Did you get any build.gradle errors?

    • @theguitarverse
      @theguitarverse 18 дней назад

      @@JamesUkoli Actually I got those errors but it is because "react-native-iap" is not maintained anymore, this library is migrated to "expo-iap" so try everything with that library.

  • @skippybassmaster7268
    @skippybassmaster7268 3 года назад

    Awesome !! Absolutely well done, you are good at teaching, keep it up thanks

  • @TheByadiqe
    @TheByadiqe 3 года назад +6

    If you are a license tester you don't need to install expo updates and publish the changes, debug version of the app will work just fine. But make sure to use android device not an emulator because billing library doesn't work in emulator. Thanks for the video!

    • @sumarianakadek1855
      @sumarianakadek1855 3 года назад

      this is very untrue, i'm testing it, it should be uploaded/push with expo update in order to request purchase. otherwise you'll getting an error which says request is not available for purchase

  • @ricardoolivaresventura4603
    @ricardoolivaresventura4603 3 года назад

    Brother, Thank you very much for this video.
    It's what I was looking for

  • @iyankamau
    @iyankamau 3 года назад

    Exactly what I was looking for. Thanks.

  • @ja61R
    @ja61R 2 года назад

    I’m from Pakistan and I don’t develop I study only 8 class and I learn Java myself not learned still learning. And if anyone is my teacher during this one year, it is you. SIR

  • @Попробуйповторить-е7з

    THe best RNIap turorial!!!🤟

  • @arupde6320
    @arupde6320 3 года назад

    bro plz upload more on advance react native topics .. ur explanation is very good ...

  • @RenatoColossuss
    @RenatoColossuss 3 года назад

    Sensational my brother! Thank you very much, success for you.

  • @youcefben3105
    @youcefben3105 3 года назад

    Thank you so much I followed your tutorial and it helped me a lot.

  • @Kubaguette
    @Kubaguette 3 года назад +1

    Finished the tutorial. Very well explained and awesome done. It would have been even better if you could provide the payment also for consumable items, everything you did was with a subscription so in my case its not working perfectly when I try to buy things but I got it working now 100% my own way.

    • @chrislloyd1734
      @chrislloyd1734 3 года назад

      Hi, I am also doing consumables only. From what I see there is no need to validate a consumable purchase. Validation is only required to check if a subscription or one time purchase has already been made or is active or not. Am I correct?

    • @Kubaguette
      @Kubaguette 3 года назад

      @@chrislloyd1734 Im not sure about that. I implemented validation and it works so I better stick to that before messing up anything 😂

    • @chrislloyd1734
      @chrislloyd1734 3 года назад +1

      @@Kubaguette OK. Thanks for your quick reply.

  • @philosophycode6551
    @philosophycode6551 3 года назад

    Excellent!! best explanation, thank you very much, bre,

  • @sumarianakadek1855
    @sumarianakadek1855 3 года назад

    the best explanation, thank you, you have saved me from misery :rofl:

  • @jonathanguillen7704
    @jonathanguillen7704 3 года назад +1

    Best guide for RNIAP out there!!! I really thank your effort here, mate! I have a couple of questions, though. Would Google have any concerns if we keep validating subscription status on each app launch? Also, are you aware of any charges doing so? Thanks again!! I liked and suscribed :D

    • @euanmorgann
      @euanmorgann  3 года назад +1

      Thank you :D no there shouldn't be any issues or charges, however you could perhaps store the subscription data in your own database and verify it yourself :)

    • @cubetechnologyinnovationmy1728
      @cubetechnologyinnovationmy1728 3 года назад

      @@euanmorgann Hey!! Thanks Euan! That's exactly what I did, haha. Thanks a lot!

  • @TuanNguyen-cs6kl
    @TuanNguyen-cs6kl 3 года назад

    Thank you very much. I'm from VietNam

  • @ahsanabrar880
    @ahsanabrar880 2 года назад

    thanks man, great job

  • @찍먹좌-n7z
    @찍먹좌-n7z 3 года назад

    Thanks😀
    Now watching 53:44
    TODO 32:08

  • @groultaria6732
    @groultaria6732 3 года назад +2

    Awesome work, I find it so hard to get good info on this topic with react native. Liked, subscribed, and shared. Would it also be possible to share your VS Theme? I want to do a vim version of it!!

    • @euanmorgann
      @euanmorgann  3 года назад

      Thank you! The theme is called 'Community Material Theme Darker High Contrast'

    • @chrislloyd1734
      @chrislloyd1734 3 года назад

      @@euanmorgann Hi, I am doing consumables only such as extra coins that can be used and spent within the app. From what I see there is no need to validate a consumable purchase. Validation is only required to check if a subscription or one time purchase has already been made or is active or not. Am I correct?

  • @gilbertopalomeque8135
    @gilbertopalomeque8135 3 года назад

    Excellent!!

  • @danielyonamusic
    @danielyonamusic 3 года назад

    awesome, thanks!

  • @sentilayshorts
    @sentilayshorts Год назад +1

    can u make a new video with new iap for subs and products ?

  • @danielcti
    @danielcti 3 года назад

    excelent video

  • @venkatbalasubramanian480
    @venkatbalasubramanian480 3 года назад +2

    Are you able to add the IAP to the Play Store without doing "Rollout to Production" first? I want to be able to test my IAP on Android before pushing it to the Play Store.

  • @reia1768
    @reia1768 2 года назад

    Thanks for this tutorial, Very well explained . Hope you don’t mind if i ask, maybe you know also how to upgrade and downgrade the subscription.

  • @ziamohe-uddin2178
    @ziamohe-uddin2178 Год назад +1

    FIrst of all i want to thank you for this helpful tutorial. can you please mention the react native iap library version ? i have checked it in you git repo but not found any help.

  • @plmstrokes
    @plmstrokes 2 года назад

    in case of non-consumable products, can i rely just on purchase history? w/o back end validation i mean.
    btw nice content, thx.

  • @scascar92
    @scascar92 3 года назад

    Awesome

  • @sentilayshorts
    @sentilayshorts Год назад

    I want purchase details add to cloud firebase when receipt bought and when app closed and opened its must check is there available sub if yes, continue app but if no I want delete purchase detail from cloud firebase, I hope u understand I mean how I will do it?

  • @harisahmed4734
    @harisahmed4734 10 месяцев назад

    hi ! one time code successfully redeem but custom code not redeemed because it can be redeemed inside app any solutions

  • @RaviThakor-j6h
    @RaviThakor-j6h Год назад

    so what if i cancelled the subscription during the trial, how will i know from the code

  • @GGGGGGGGGG96
    @GGGGGGGGGG96 3 года назад

    Hi! This tutorial covers how to make an purchase but the renewal of an subscription is not covered in this video? Thanks!

  • @pradipbade3349
    @pradipbade3349 3 года назад

    Awesome video. how to debug on device in-app purchase methods?

  • @vnkpurohit
    @vnkpurohit 2 года назад

    i got subscriptions but purchase request is not working how do i debug it

  • @arupde6320
    @arupde6320 3 года назад

    Bro plz uupload more videos on react native ..

  • @been0420
    @been0420 2 года назад +1

    I just use internal test for the test but you used closed test. Is it impossible use internal test to iap test?

    • @Antonym-b5o
      @Antonym-b5o Год назад

      the same question. Do you have an answer?

  • @sentilayshorts
    @sentilayshorts 2 года назад

    can u do with firebase and 3 product and without firebase functions

  • @592swapnil
    @592swapnil 2 года назад

    Thanks for saving from the great grand canyon.

  • @MoraesDev
    @MoraesDev 3 года назад

    why I can't buy in debug mode ? the product list in debug but said I can't buy this products have any idea ?

  • @hiteshtarbundiya7339
    @hiteshtarbundiya7339 3 года назад

    how to run this apk becaus for console log, you not display how to run and get output on conlose

  • @SilverionGameplays
    @SilverionGameplays 11 месяцев назад

    It give me errors when using IAP methods and I don't know why... Can you upload package.json? Or the whole project? TYSM

  • @shehriyarnadeem2582
    @shehriyarnadeem2582 3 года назад

    The app link sends to testers takes infinite time to load. Please let me know what might be the problem?

  • @matthewjin3337
    @matthewjin3337 3 года назад

    thanks for post great vidoe. can you please give me a hint of how to use in app purchase as "coin" in react native? thanks!

  • @chrislloyd1734
    @chrislloyd1734 3 года назад

    Hi, I am doing consumables only such as extra coins that can be used and spent within the app. From what I see there is no need to validate a consumable purchase. Validation is only required to check if a subscription or one time purchase has already been made or is active or not. Am I correct?

  • @rog0079
    @rog0079 2 года назад +1

    Hi, first of all thanks for this great video! I have a question, can we use other payment methods like Stripe, Razerpay for a subscription based app instead of using in-app purchases with the same backend process? Like is it a good idea? Anyone?

    • @carit.psicologo
      @carit.psicologo Год назад

      I think you can't because of play store rules, they get a 30% cut

  • @fraty1630
    @fraty1630 3 года назад

    Hello, Thanks for the video! I was trying to set it up using the above steps but unable to fetch products/subscriptions. I followed all your steps but when I'm trying to console log the output, it's just an empty array. Is there anything I should do ?

  • @been0420
    @been0420 2 года назад

    Hello.. First of all thank you for good video. I have some trouble. I think I can connect play store because I didn't get message "error connecting to store" but I can't get products. And I can make .aab file using ./gradlew bundleRelease command. There is a message like this : > Task :react-native-iap:generatePlayReleaseRFile FAILED
    However I can't find this error anywhere.... Can I get some help from you? please....

  • @Ptit.clement
    @Ptit.clement 3 года назад +1

    Haha yeaaaah !

  • @danielfischer6846
    @danielfischer6846 2 года назад

    Hi Euan, thanks a lot for your videos, I don't think I could have implemented this without them. However, I have the problem that in production mode (app is available on google play) every purchased subscribtion returns paymentState: 2. I decided to accept these as valid transactions in my backend, but now my play console says that I have zero subscriptions (even though I can see in my database that new users subscribed to the app). Do you have an idea?

  • @thetamefear
    @thetamefear 3 года назад

    bro, it's have a bug with more then 1 subscriptions to check ;) they didn't update their places in history by purchasing

  • @sagarraturi7283
    @sagarraturi7283 3 года назад

    Hey bro, nice video just one question. I am not able to disable the pause subscription option from manage subscription settings in play console even if i select disabled in pause subscription then it is still showing me the pause subscription option in google playstore manage subscription screen. Pls can u check and let me know if u find any solution thanks
    One more thing to add that i am getting this issue in alpha testing

  • @dariolimardo1619
    @dariolimardo1619 3 года назад

    hello thanks for the tutorial. my problem is that isActiveSubscription always returns false despite the subscription being purchased. do you have an idea why?

  • @sentilayshorts
    @sentilayshorts 2 года назад

    how can i check subscriber without firebase functions??

    • @carit.psicologo
      @carit.psicologo Год назад

      You can check in any backend type, firebase is just the fastest to get up and running

  • @blueLab2024
    @blueLab2024 3 года назад

    hello i get this error TypeError: undefined is not an object (evaluating '_reactNativeIap.default.initConnection')

    • @euanmorgann
      @euanmorgann  3 года назад +1

      Hello, this answer on github suggest that
      import * as IAP from 'react-native-iap'
      could fix the issue
      github.com/dooboolab/react-native-iap/issues/1264

    • @blueLab2024
      @blueLab2024 3 года назад

      @@euanmorgann thanks yes fixed

  • @Pendududesign
    @Pendududesign 3 года назад

    I got a : Callable request verification passed {"verifications":{"auth":"MISSING","app":"MISSING"}} from firebase. And purchaseState is still at 0. is it normal ? it's seems this error comes from app check ?

    • @alfatech5252
      @alfatech5252 3 года назад

      The same for me i am working on it now

    • @Pendududesign
      @Pendududesign 3 года назад

      @@alfatech5252 i think the problem comes from the user test. Google do not acknowledge test user so… the purchase state will be always 0. I will test on production and see if the state is different if it’s a real user (me). With a true credit card.

    • @alfatech5252
      @alfatech5252 3 года назад

      are you using emulator or real android device?

    • @Pendududesign
      @Pendududesign 3 года назад

      @@alfatech5252 real device

    • @Pendududesign
      @Pendududesign 3 года назад +1

      @@alfatech5252 Ok it's working for me I just forgot to use one function. It's working with test user as well. All good. Thank you for the tutorial. (really great and helpful)

  • @FevziYıldızhan-y5l
    @FevziYıldızhan-y5l 7 месяцев назад

    Is there anyone I can get help on this matter?

  • @ErenVardar
    @ErenVardar Год назад

    There has been an error with your purchase. "There has been an error with your purchase"

  • @AllahomAnsorGaza
    @AllahomAnsorGaza 2 года назад

    any news about expo ? :D

    • @euanmorgann
      @euanmorgann  2 года назад

      Hoping to make a tutorial soon 😁

  • @kvlknctk
    @kvlknctk 3 года назад

    I like your tone of voice, knowledge and style of expression. but I think it will be better for you if you give up the operating system you are using.

    • @euanmorgann
      @euanmorgann  3 года назад +1

      I dislike windows too 😂 I use Mac and Linux also, but my main machine has always been Windows

  • @sentilayshorts
    @sentilayshorts 2 года назад

    parameter specified as non-null is null: method kotlin.jvm.internal.intrinsics.checknotnullparameter, parameter skuArr what's the problem?

  • @furkandemir-rl6mb
    @furkandemir-rl6mb Год назад

    "skus" is required I get this error , help me please

    • @IRCAcademy
      @IRCAcademy 8 месяцев назад

      if por migration 10.0.0. yo need to put getproducts({skus: productid]), instead of getproducts("productid"). just that, the same getsubscriptions, etc