Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Push Update is very slow on Android and iOS #2372

Closed
agrawalsurabhi89 opened this issue Nov 11, 2022 · 4 comments
Closed

Code Push Update is very slow on Android and iOS #2372

agrawalsurabhi89 opened this issue Nov 11, 2022 · 4 comments

Comments

@agrawalsurabhi89
Copy link

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Steps to Reproduce

  1. On Load of the app, we are calling checkforUpdate() to check if there is an update present or not.
  2. if user clicks on Update will download the bundle and we are showing the loader by the time bundle is download in the device.
  3. Once its downloaded the updated we are showing that its update

Expected Behavior

The update should happen very quickly, sometime it get stuck in the update and takes very long to update which is very frustating to the user.

Actual Behavior

It should run very fast while updating

  STACK TRACE AND/OR SCREENSHOTS

Reproducible Demo

  • Download https://github.com/microsoft/react-native-code-push/archive/master.zip and unzip. From Examples folder run node create-app.js appName react-native@0.61.5 react-native-code-push@6.0.0 command to generate plain CodePushified React Native app. Please see description on top of create-app.js file content if needed
  • If you can't reproduce the bug on it, provide us as much info as possible about your project

Environment

  • react-native-code-push version:
  • react-native version:
  • iOS/Android/Windows version:
  • Does this reproduce on a debug build or release build?
  • Does this reproduce on a simulator, or only on a physical device?

(The more info the faster we will be able to address it!)

@ghost ghost added the stale label Jan 10, 2023
@ghost
Copy link

ghost commented Jan 10, 2023

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
Copy link

ghost commented Jan 25, 2023

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 ghost closed this as completed Jan 25, 2023
@zeusstl
Copy link

zeusstl commented Mar 14, 2023

This is a perpetual issue for me as well. I'm shocked there aren't more people complaining about this, which makes me wonder if checkForUpdate is the wrong way to do be setting this up.

It seems like codepush is doing an entire comparison rather than a quick simple check. Or maybe caching isn't working right on the codepush end. I'm going to test more.

This issue is making the tool virtually unusable as it needs to wait between 3 and 20 seconds each time the app is reopened. If I can't find a solution, I may try to implement a local solution to only check once a week or so to try to avoid this issue. Or I may need to switch to a different service.

@abhijeettpt
Copy link

abhijeettpt commented Mar 15, 2023

We have been facing similar slowness while checking for updates today as well on both Android and iOS. Seems to be random and roughly lasted for 2 hours around 3 PM UK time. Speed seems to drop randomly every now and then.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants