APP is checking for updates everytime as the app starts
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.
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.
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.
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.