React Native + CodePush:更新是否仅在应用程序第二次加载时出现?

React Native + CodePush: Do updates only appear the 2nd time the app has been loaded?

我有一个应用程序已经在应用程序商店上线了。我只是在没有通过应用商店的情况下通过代码推送推送了一个重要的错误修复。

但是,据我所知,用户必须先打开应用程序,获取更新的代码,并且只有在应用程序第二次启动时,更新才会生效。这是真的?如果是这样,是否意味着我仍应尝试通过应用商店推送新版本?

如果您使用 { installMode: InstallMode.IMMEDIATE } 参数通过 Code Push 发布,补丁会立即应用,无需重启应用。

应用补丁后,用户会看到应用程序中出现白色闪烁,然后应用程序恢复。

https://microsoft.github.io/code-push/docs/tutorials.html

If an update is available, it will be silently downloaded, and installed the next time the app is restarted (either explicitly by the end user or by the OS). However, developers can modify the install behavior if they so choose, by leveraging the installMode parameter:

IMMEDIATE: The update will be applied to the running application immediately. The application will be reloaded with the new content immediately.

...