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

APP is checking for updates everytime as the app starts

Open puneetkansal04 opened this issue 5 years ago • 3 comments

I am using this but this is not useful as it loads bundle everytime the app starts

codePush.sync( { installMode: codePush.InstallMode.IMMEDIATE, },

I want that it will check for updates Only when a new update is live. So how can i do that.

puneetkansal04 avatar Nov 24 '21 05:11 puneetkansal04

The installMode option only controls the moment when the update would be applied. If you want to control the frequency of update checks, you need to set the CheckFrequency option. To check for an update only when it's available you probably need to use:

CodePush({ checkFrequency: CodePush.CheckFrequency.MANUAL });

and implement your logic around it, which will trigger the updateCheck only when you want.

doomkit avatar Jan 04 '22 09:01 doomkit

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 13: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