Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
haohetao opened this issue Jul 17, 2020 · 2 comments
Open

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

haohetao opened this issue Jul 17, 2020 · 2 comments

Comments

@haohetao
Copy link

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

@haohetao haohetao changed the title 如果解决安装最新的App后仍然提示热更新的问题? 如何解决安装最新的App后仍然提示热更新的问题? Jul 17, 2020
@haohetao
Copy link
Author

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

@JackClown
Copy link

JackClown commented Jul 19, 2021

是因为生成的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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants