我有一个应用程序已经在应用商店上线了。我只是通过代码推送推送了一个重要的错误修复,而没有通过应用商店。
但是,据我所知,用户必须先打开应用程序,获取更新的代码,并且只有在应用程序第二次启动时,更新才会生效。这是真的?如果是这样,是否意味着我仍应尝试通过应用商店推送新版本?
最佳答案
如果您使用 { 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.
...
关于react-native - react native + 代码推送 : Do updates only appear the 2nd time the app has been loaded?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43062541/