react-native - react native + 代码推送 : Do updates only appear the 2nd time the app has been loaded?

标签 react-native code-push

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

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

最佳答案

如果您使用 { 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/

相关文章:

android - 代码推送功能不适用于 native 应用程序

javascript - 代码推送返回400错误

react-native - 解决与项目根目录外的 native 包文件相关的 Assets

javascript - 分配的响应数据显示 [object object] React Native

android - Codepush React Native Android staging- 在根项目中找不到任务 installReleaseStagingDebug

reactjs - React-Redux |产品列表 |使用 BindActionCreator 添加/删除

javascript - 即使应用程序在后台,如何保持后台计时器在 native react 中运行

android - Codepush 不适用于所有 Android 用户

react-native - 如何更新已保存的项目 AsyncStorage

react-native - React Native FlatList - 如何在下方为按钮留出空间?