Implementing CodePush in React Native | React Native Code Push |

Sdílet
Vložit
  • čas přidán 12. 09. 2024
  • What is CodePush?
    CodePush is a cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.
    How does CodePush work in ReactNative?
    A React Native app consists of JavaScript files and any accompanying images, which the packager bundles and distributes as part of a platform-specific binary (i.e., an .ipa or .apk file).
    Once the app is released, updating the JavaScript code (e.g., fixing bugs or adding new features) or image assets, requires recompilation and redistribution of the entire binary, which includes, of course, any review time associated with the store(s) on which it is published.
    The CodePush plugin helps get product enhancements to end users instantly, by keeping your JavaScript and images in sync with updates you release to the CodePush server. This way, your app gets the benefits of an offline mobile experience, as well as the “web-like” agility of side-loading updates as soon as they become available. It’s a win-win!
    Note: Any changes to the product that touch native code (e.g. modifying your AppDelegate.m/MainActivity.java file, adding a new plugin) cannot be distributed via CodePush, and therefore must be updated via the appropriate store(s).
    The operation is based on wrapping our app in a CodePush HOC (higher-order component) that is responsible for checking if there are new updates to our code in CodePush and reloading the app with the new changes.
    React Native CodePush uses its own server to store a copy of each CodePush deployment and a control version in case a rollback is needed; this can be done almost instantly. All of this is managed through a user-friendly control panel provided by Microsoft, which not only allows you to control CodePush deployments but also conventional ones.
    It also allows simultaneous testing of versions on a wide variety of devices and platforms.
    The library has a wide variety of configuration parameters that, among other things, allow you to choose when to check for and download new versions of React Native CodePush for the app and also give you the ability to use events to determine when each of these processes has been completed. For example, you can notify the end-user that a new version will be installed the next time the app is restarted.
    Appcenter
    appcenter.ms/
    npm link
    www.npmjs.com/...
    react native code push,react native redux,react native expo,react native upgrade,react native,react native tutorials,react native tutorial,code push,react native tutorial for beginners,react redux,codepush,react native tutorial for beginners mac,can it be done in react native?,analytics,react,update application,update automatically,pure component,code,push,app center,google play,android build,update,push notification,apk,tutorial,microsoft,app store,appcenter | codepush,react native |react native expo,react native,can it be done in react native?,react native redux,react native tutorial,push notification,react native tutorial for beginners,react native tutorial for beginners mac,react redux,codepush,code push,update application,google play,pure component,android build,code,push,tutorial,app store,analytics,appcenter,apk | codepush,react native|react native,reactnative,react-native,why react native,react native app,react native 2020,learn react native,react native course,what is react native,react native project,react native tutorial,why learn react native,react native crash course,react native app tutorial,react native for beginners,introduction to react native,react js,react,what is react native used for,why react native is not garbage,react native tutorial for beginners,learn react | can it be done in react native?,react native,react native expo,react native redux,code push,react native tutorial,codepush,push notification,update application,react native tutorial for beginners,react redux,react native tutorial for beginners mac,analytics,google play,code,push,android build,pure component,appcenter,tutorial,app store,apk | app center,app center android,visual studio app center,app center xamarin forms,mobile devops with app center,visual studio app center tutorial,certificate,development certificate,continuous delivery,xamarin build pipeline,continuous integration,mobile development for beginners,react native,xamarinforms,xamarin.forms,continuous integration tools,continuous integration github,continuous integration example,xamarin,continuous integration tutorial,android | react native,ci/cd techniques,react,reactjs,react.js,coding education,developer,learn about code,conference,learn code,publication,app testing,learn a developer language,amazon alexa skills,developer conference,ariya hidayat,coding hints and tips,program testing,backend,testing,web development,meet up,app store,paasitorni,technology,programming,open source,mac,coding lecture,tips,all things open,developer language,android,finland,lecture,ato2020,meet-up

Komentáře • 98

  • @Koshick
    @Koshick Před 2 lety +1

    Thank you so much. I finally use code-push with your tutorial. There's so much outdated blog post in internet but yours really worked well.

  • @TheSostenesg7
    @TheSostenesg7 Před 2 lety +4

    Perfect. With your guide I've implemented my first codepush update. Thanks, God bless you.

  • @JASACADAMY
    @JASACADAMY  Před 2 lety +5

    Code Push only works with JS code. It doesn't allow to push native binaries. In that case, you have to update app bundles in stores to update your native dependencies.

  • @turomatulic
    @turomatulic Před 10 měsíci +1

    Marvelous, thank you very much!!! it worked awesomely... BTW, any idea if it is possible to do module federation and publish changes in independent proyects to send updates? thanks!

  • @himanshuagarwal7925
    @himanshuagarwal7925 Před 9 měsíci +2

    Very helpful thank you very much for the video.

  • @maxbraun2140
    @maxbraun2140 Před 2 lety +1

    What kind of android emulator do you use? Its look nice. And is it also possible to add for example a new Component or something else?

    • @JASACADAMY
      @JASACADAMY  Před 2 lety +1

      its my mobile connected through vysor

  • @zixincheng6011
    @zixincheng6011 Před 2 lety +3

    Indian guys on youtube are way more helpful than the official documents, always.

  • @tonyegreene2562
    @tonyegreene2562 Před rokem +2

    An amazing guide! implemented successfully. Thank you 3>

  • @siddhantshelake2928
    @siddhantshelake2928 Před 3 měsíci +1

    Which parts of my React Native codebase are hosted on Microsoft's App Center servers when I use CodePush?

  • @najeebullahkhan4152
    @najeebullahkhan4152 Před rokem +1

    Everything was right.
    I created a build with "npx react-native run-android" and then after making some changes I published them on AppCenter.
    Changes ( Changed Text in ABC tag)
    Changes were not reflected in My Oppo A5s devices (Real Device)
    On Appcenter RollBacks and Active Devices are "-"

  • @KhurshidAnsari786
    @KhurshidAnsari786 Před 7 měsíci +1

    thank you for to know usage of push code

  • @akhilsanker2870
    @akhilsanker2870 Před 2 lety +2

    Hi,
    Consider the scenario,
    1. There is an app, version v1, with code push HOC.
    2. We need to update the current version in the play/app store with v2 and not updating code push cloud.
    3. After updating to new version v2 from the store, which code will be working in the latest build, is it the code from code push cloud or code from app/play store.?
    Thanks

    • @JASACADAMY
      @JASACADAMY  Před 2 lety +3

      you can add Target version in code push relase

  • @nakshatrasingh6933
    @nakshatrasingh6933 Před rokem +1

    Great tutorial, will this work for typescript?

  • @orkhannabiev9192
    @orkhannabiev9192 Před 7 měsíci +1

    Thank you, bro. Appreciate you so much 🔥

  • @tabishabbasi821
    @tabishabbasi821 Před měsícem +1

    thank you so much sir, it is really helping video😊

  • @turnosmantencion8832
    @turnosmantencion8832 Před rokem +1

    this module works in applications that use expo and you can share the repo. Thank you

  • @raghadahmmad2227
    @raghadahmmad2227 Před 11 měsíci +1

    it worked thank you for sharing.

  • @anhvaemofficial
    @anhvaemofficial Před rokem +1

    Thank you so much. Is there a guide for ios?

  • @harikarthyk788
    @harikarthyk788 Před 2 lety +1

    That's cool It is working, Amazing, But Can I know the difference between staging and production, both do the same process then what is the difference?

    • @JASACADAMY
      @JASACADAMY  Před 2 lety +2

      command has different and you can configure different configurations using multiple flavor

  • @yavuzcetin5549
    @yavuzcetin5549 Před 2 lety +1

    Hİ. src/assets images are nothing visible after update. Do you know the solution?

  • @jainigandhi4830
    @jainigandhi4830 Před rokem +1

    Thanks for providing this video. But Can you please share video link for iOS platform?

  • @rishabh-bhardwaj-0207
    @rishabh-bhardwaj-0207 Před 2 lety +1

    very good Shimil :)

  • @FaysalBDev
    @FaysalBDev Před rokem +1

    This is a great video, thank you for your time

  • @danielshiva160
    @danielshiva160 Před 2 lety +1

    Great work bro :)

  • @MrPhani442
    @MrPhani442 Před 2 lety +1

    Thanks for the Video.. Able to send OTA updates for Android APP using Code push. Please make IOS tutorial also

  • @ByteNatives
    @ByteNatives Před 2 lety +1

    spectacular!!

  • @bekiryetim3562
    @bekiryetim3562 Před 10 měsíci

    Thank you so much bro.

  • @Saurabhkumar-ps5zp
    @Saurabhkumar-ps5zp Před 2 lety +3

    Please create video for IOS also.

  • @daehyeonmun
    @daehyeonmun Před 9 měsíci +1

    Thanks a lot :D

  • @mishenthakshana3407
    @mishenthakshana3407 Před rokem +1

    Can you do the iOS video too

  • @BaneCodes
    @BaneCodes Před rokem

    Thanks for the Video. I question how can i delete my previous codepush?

    • @JASACADAMY
      @JASACADAMY  Před rokem

      disable it from app center and release new version

  • @geralddiaz9758
    @geralddiaz9758 Před 2 lety +1

    Thank you!

  • @chandraroy2481
    @chandraroy2481 Před 2 lety +1

    Thank you sooooo much

  • @Play13Maker
    @Play13Maker Před 2 lety +1

    Thank you so much for this tutorial. It works perfect on android devices. However, the updates are not reflected on ios...

    • @JASACADAMY
      @JASACADAMY  Před 2 lety

      please try to add code push currectly

    • @Play13Maker
      @Play13Maker Před 2 lety

      @@JASACADAMY it worked. Just check the docs for iOS

  • @deepakduvedi7075
    @deepakduvedi7075 Před 2 lety +1

    Changes not reflecting. Showing rollbacks and active devices as -

    • @JASACADAMY
      @JASACADAMY  Před 2 lety +1

      which device?have you pushed changes?

  • @ajiehatajie
    @ajiehatajie Před 2 lety +1

    do you know step custom server , because codepush is very slow dowload in indonesia

    • @JASACADAMY
      @JASACADAMY  Před 2 lety +1

      www.electrode.io/docs/what_is_electrode.html checkout this

  • @danbennatan2245
    @danbennatan2245 Před rokem

    Hi! thanks a lot for this video. I use the latest react-native version, and for some reason I don't get my app updated, though the code-push releases do uploaded to my app-center. Furthermore seems like the 'Rollback" and the "Active Devices" columns are not getting updated. Can you figure why? I followed all the instructions. Thank you!

  • @chamaldezilva
    @chamaldezilva Před 2 lety +1

    Great video

  • @securityguy8353
    @securityguy8353 Před rokem

    I did the same steps but it did not reflect on my app side

  • @user-gw8hq8qu7o
    @user-gw8hq8qu7o Před 8 měsíci

    appcenter codepush release-react -a crashanalytics/crashanalytics -d Staging
    appcenter: command not found please help me my command is not working please help me. i have already setup but command is not work.

    • @user-gw8hq8qu7o
      @user-gw8hq8qu7o Před 8 měsíci

      @JASACADAMY

    • @dev-yk1df
      @dev-yk1df Před 5 měsíci

      please put command like : appcenter login
      to login your app center.

  • @najeebullahkhan4152
    @najeebullahkhan4152 Před rokem

    Would this WORK for "npx react-native run-android" build ?

  • @lwolfur
    @lwolfur Před rokem +1

    is it possible with a React Native Expo App?

    • @JASACADAMY
      @JASACADAMY  Před rokem +1

      docs.expo.dev/bare/updating-your-app/

    • @JASACADAMY
      @JASACADAMY  Před rokem

      EAS update works with bare React Native projects created with react-native init. These projects have android and ios directories that you can modify native files directly.
      The steps for configuring a bare React Native project are identical to the steps for configuring an Expo project

  • @FaisalKhan-ce2qu
    @FaisalKhan-ce2qu Před 7 měsíci

    anyone struggling with everything working but changes not showing in android devices, add this line in your android>app>build.gradle -- defaultConfig{ ......... resValue 'string', "CODE_PUSH_APK_BUILD_TIME", String.format("\"%d\"", System.currentTimeMillis())

    • @JASACADAMY
      @JASACADAMY  Před 7 měsíci

      Follow whole integration one by one

  • @adityapratama7600
    @adityapratama7600 Před 2 lety

    Thank you for tutorial ..

  • @khimbahadurgurung8918
    @khimbahadurgurung8918 Před 2 lety +1

    which version of react native and react native code push you are using? I have done everything without any error but changes are not reflecting. It shows rollback 1, downloads 1 but installs 0.

    • @JASACADAMY
      @JASACADAMY  Před 2 lety

      Reopen the app once more after a while.please double check which stage you have pushed and also verify deployment key

  • @bharatmishra250
    @bharatmishra250 Před 2 lety

    everything is clear

  • @safideraiya9331
    @safideraiya9331 Před 2 lety

    Hello First of all thank you very much for this wonderful tutorial.
    I followed all your steps and it's working. Now I am trying to connect my GitHub repo with appcentre but it show error - We couldn't find any react native Android Projects in your branch.
    Can you please suggest me how can I solve this issue?

    • @JASACADAMY
      @JASACADAMY  Před 2 lety

      check repo acess

    • @safideraiya9331
      @safideraiya9331 Před 2 lety

      @@JASACADAMY thank you for your reply
      I have to assign access from private to public in GitHub?

    • @JASACADAMY
      @JASACADAMY  Před 2 lety

      @@safideraiya9331 no there will be an option to give access for appcenter

    • @safideraiya9331
      @safideraiya9331 Před 2 lety

      @@JASACADAMY i didn't know how to give access to appcentre into GitHub?

    • @JASACADAMY
      @JASACADAMY  Před 2 lety

      intercom.help/appcenter/en/articles/2722743-i-don-t-see-my-repository-under-github-organization

  • @Saurabhkumar-ps5zp
    @Saurabhkumar-ps5zp Před 2 lety +1

    Sir please create video on code push for IOS also.

  • @rukshanwithanage8812
    @rukshanwithanage8812 Před 2 lety

    If you could stop sheeeeeeeek thing while u speaking would be great.