react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

[Feature Request] Support codepush updating via a background service

Open AndrewJack opened this issue 8 years ago • 19 comments

~Before this project becomes closed source~, I'd like to request this feature. If there's somewhere more appropriate to post this please let me know.

The ability to trigger a code push download in a Android JobScheduler service or ios background task would help speed up the deployment time of a code push.

I have attempted to do this with the current APIs however it requires starting up the JS runtime to trigger the bundle fetch. Additionally, the code that runs isn't optimised or supported in the background and only occasionally works.

Let me know if you need anymore detail or suggestions for implementation.

AndrewJack avatar Mar 16 '18 11:03 AndrewJack

+1 Could come as a very handy feature.

yaronlevi avatar Mar 16 '18 14:03 yaronlevi

Thanks for this feature request. This is a really cool idea. I would love to hear some additional details regarding the use cases and how you envision this feature would improve the current CodePush release flow!

Zakeelm avatar Mar 19 '18 21:03 Zakeelm

The release flow could look something like:

  1. Release a CodePush update
  2. Send a remote push trigger (APN, FCM, etc) or scheduled background job starts
  3. Call CodePush api in Java or Objective C to sync the CodePush bundle
  4. CodePush downloads the new bundle, if new bundle is available
  5. CodePush can then wait for next app start to load the new bundle. Or if it is currently running follow some similar logic to the installMode used in the current JS sync method (ON_NEXT_RESTART or ON_NEXT_RESUME).

AndrewJack avatar Mar 26 '18 12:03 AndrewJack

Ah, I see. That makes sense. I can definitely see how that would improve the deployment time. I'm going to keep this open for now to see if others are interested in this as well!

Zakeelm avatar Mar 29 '18 23:03 Zakeelm

@AndrewJack Codepush is becoming closed source?

thevolcanomanishere avatar Apr 13 '18 14:04 thevolcanomanishere

@thevolcanomanishere it says in the migration guide FAQs:

As of now, the only big change is the use of the App Center CLI and the structure of the commands. No changes in your code will be neccesarry until the release of the new SDK next year. In addition to this, CodePush will no longer be open sourced. The CodePush team would like to extend our graditude for your help in making CodePush what it is today. None of this would be possible without such an amazing community.

https://docs.microsoft.com/en-us/appcenter/distribution/codepush/migrationguide#faq

AndrewJack avatar Apr 13 '18 14:04 AndrewJack

+1 Please support this feature 🙂

yogieputra8 avatar Apr 24 '18 04:04 yogieputra8

@Zakeelm any update on the roadmap between now & October? Will this feature be implemented? 😇

Or we should start shifting towards the App Center altogether?

kelset avatar May 08 '18 13:05 kelset

@Zakeelm "App Center" is a dashboard (and a set of SDKs). It dose not replaces code push. If I am not mistaken, it will be baked into app centers sdk.

yaronlevi avatar May 09 '18 07:05 yaronlevi

@AndrewJack @thevolcanomanishere We've updated our docs. CodePush will remain open sourced! At the moment, we have tentative plans to migrate the CodePush SDK into the App Center SDK, which is still open sourced. I'm not able to provide an ETA on this though.

Zakeelm avatar May 18 '18 17:05 Zakeelm

@kelset At the moment, we don't have any updates to share on the roadmap. Our team has had a priority shift, so new feature work isn't happening as fast. We do recommend switching over to the App Center CLI whenever you find time though. There will not be in disruptions in your workflow when using the CodePush CLI though

Zakeelm avatar May 18 '18 17:05 Zakeelm

@yaronlevi The plan is to move CodePush SDK into the App Center SDK. CodePush isn't going anywhere.

Zakeelm avatar May 18 '18 17:05 Zakeelm

How is this looking? This seems to be a popular feature and a practical use case for CodePush.

If I detect a bug in my mobile app, update it and send in a hot update then I don't want my users to have to open my app and potentially run into the patched bug.

It would make more sense to have the new bundle downloaded and installed behind the scenes so that when users do open the app, they always experience the latest version.

FrenchMajesty avatar Oct 07 '19 23:10 FrenchMajesty

is there any update about this feature?

i am using this codepush for our big application, i hope there is this feature for helping customer get background bundle update, instead of waiting for apps to open and update.

never00miss avatar Feb 19 '21 04:02 never00miss

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Mar 05 '22 17:03 ghost

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

ghost avatar Mar 20 '22 18:03 ghost

Are there any updates? Has someone tried to implement it themselves?

DominikHinc avatar Nov 22 '22 12:11 DominikHinc

+1 We would love to have this feature looking at our abysmal CodePush install rates and rollbacks!

kanadgodse-lh avatar Mar 10 '23 17:03 kanadgodse-lh

+1 is there a feature for helping customer get background bundle update, instead of waiting for apps to open and update.

geekconvert avatar Sep 06 '23 10:09 geekconvert