Implementing CodePush in React Native | React Native Code Push |

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.พ. 2022
  • 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/package/react-n...
    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

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

  • @Koshick
    @Koshick 2 ปีที่แล้ว +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.

    • @JASACADAMY
      @JASACADAMY  2 ปีที่แล้ว

      thanks for feedback 👍

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

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

    • @JASACADAMY
      @JASACADAMY  2 ปีที่แล้ว

      thanks for feedback 👍

  • @tonyegreene2562
    @tonyegreene2562 ปีที่แล้ว +2

    An amazing guide! implemented successfully. Thank you 3>

  • @JASACADAMY
    @JASACADAMY  2 ปีที่แล้ว +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.

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

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

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

      thanks for feedback 👍

  • @daehyeonmun
    @daehyeonmun 7 หลายเดือนก่อน +1

    Thanks a lot :D

  • @himanshuagarwal7925
    @himanshuagarwal7925 7 หลายเดือนก่อน +2

    Very helpful thank you very much for the video.

    • @JASACADAMY
      @JASACADAMY  6 หลายเดือนก่อน +1

      Glad it was helpful!

  • @orkhannabiev9192
    @orkhannabiev9192 5 หลายเดือนก่อน +1

    Thank you, bro. Appreciate you so much 🔥

    • @JASACADAMY
      @JASACADAMY  5 หลายเดือนก่อน +1

      Happy to help

  • @raghadahmmad2227
    @raghadahmmad2227 9 หลายเดือนก่อน +1

    it worked thank you for sharing.

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

      You're welcome!

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

    This is a great video, thank you for your time

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

      thanks for feedback

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

    Thank you so much bro.

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

      Always welcome

  • @adityapratama7600
    @adityapratama7600 2 ปีที่แล้ว

    Thank you for tutorial ..

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

    Thank you!

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

      thanks for feedback 👍

  • @KhurshidAnsari786
    @KhurshidAnsari786 5 หลายเดือนก่อน +1

    thank you for to know usage of push code

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

      You are welcome

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

    spectacular!!

    • @JASACADAMY
      @JASACADAMY  2 ปีที่แล้ว

      thanks for feedback 👍

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

    Thank you sooooo much

    • @JASACADAMY
      @JASACADAMY  2 ปีที่แล้ว

      thanks for feedback 👍

  • @rishabh-bhardwaj-0207
    @rishabh-bhardwaj-0207 2 ปีที่แล้ว +1

    very good Shimil :)

    • @JASACADAMY
      @JASACADAMY  2 ปีที่แล้ว

      thanks for feedback 👍

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

    Great work bro :)

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

      thanks for feedback 👍

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

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

  • @turomatulic
    @turomatulic 8 หลายเดือนก่อน +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!

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

      Yes you can!

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

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

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

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

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

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

  • @najeebullahkhan4152
    @najeebullahkhan4152 ปีที่แล้ว +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 "-"

  • @maxbraun2140
    @maxbraun2140 2 ปีที่แล้ว +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  2 ปีที่แล้ว +1

      its my mobile connected through vysor

  • @akhilsanker2870
    @akhilsanker2870 2 ปีที่แล้ว +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  2 ปีที่แล้ว +3

      you can add Target version in code push relase

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

    Great video

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

      thanks for feedback 👍

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

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

  • @jainigandhi4830
    @jainigandhi4830 10 หลายเดือนก่อน +1

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

  • @bharatmishra250
    @bharatmishra250 2 ปีที่แล้ว

    everything is clear

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

      thanks for feedback

  • @harikarthyk788
    @harikarthyk788 2 ปีที่แล้ว +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  2 ปีที่แล้ว +2

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

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

    Great tutorial, will this work for typescript?

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

    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!

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

      Have you pushed the changes

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

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

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

      disable it from app center and release new version

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

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

    • @JASACADAMY
      @JASACADAMY  2 ปีที่แล้ว

      please try to add code push currectly

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

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

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

    Can you do the iOS video too

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

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

  • @Saurabhkumar-ps5zp
    @Saurabhkumar-ps5zp 2 ปีที่แล้ว +3

    Please create video for IOS also.

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

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

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

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

  • @safideraiya9331
    @safideraiya9331 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      check repo acess

    • @safideraiya9331
      @safideraiya9331 2 ปีที่แล้ว

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

    • @JASACADAMY
      @JASACADAMY  2 ปีที่แล้ว

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

    • @safideraiya9331
      @safideraiya9331 2 ปีที่แล้ว

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

    • @JASACADAMY
      @JASACADAMY  2 ปีที่แล้ว

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

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

    is it possible with a React Native Expo App?

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

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

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

      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

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

    Changes not reflecting. Showing rollbacks and active devices as -

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

      which device?have you pushed changes?

  • @Saurabhkumar-ps5zp
    @Saurabhkumar-ps5zp 2 ปีที่แล้ว +1

    Sir please create video on code push for IOS also.

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

      yes we will do

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

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

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

      Check your deployment key

  • @khimbahadurgurung8918
    @khimbahadurgurung8918 2 ปีที่แล้ว +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  2 ปีที่แล้ว

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

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

    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 6 หลายเดือนก่อน

      @JASACADAMY

    • @dev-yk1df
      @dev-yk1df 3 หลายเดือนก่อน

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

  • @FaisalKhan-ce2qu
    @FaisalKhan-ce2qu 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      Follow whole integration one by one

  • @rukshanwithanage8812
    @rukshanwithanage8812 2 ปีที่แล้ว

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

    • @JASACADAMY
      @JASACADAMY  2 ปีที่แล้ว

      thanks for feedback

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

      @@JASACADAMY paani pi lo bhai mirchi lagi hai toh