code-push-server icon indicating copy to clipboard operation
code-push-server copied to clipboard

如何解决安装最新的App后仍然提示热更新的问题?

Open haohetao opened this issue 5 years ago • 3 comments

尝试过给code push包指定版本范围,但是这样就锁定了版本号,永远无法检测到更高版本的热更新了

haohetao avatar Jul 17 '20 13:07 haohetao

根据我的测试应该是package_hash计算的问题app计算出来的hash跟code push服务器上发布的热更新始终无法对应 所以这个hash计算规则是啥

haohetao avatar Jul 18 '20 11:07 haohetao

是因为生成的index.android.bundle不一样, 原因是react-native 0.62还是0.63之后的版本,安卓打包会生成sourcemap, 但是code-push-cli不会,这两种方式生成的index.android.bundle的最后一行是不一样的 我的解决方式是修改android打包生成js bundle的命令,不生成sourcemap,文件应该是在node_modules/react-native/react.gradle

JackClown avatar Jul 19 '21 01:07 JackClown