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

下载完之后不安装,一直提示要更新 #393

Open
tigerlx opened this issue Oct 11, 2024 · 3 comments
Open

下载完之后不安装,一直提示要更新 #393

tigerlx opened this issue Oct 11, 2024 · 3 comments

Comments

@tigerlx
Copy link

tigerlx commented Oct 11, 2024

我是从appcenter转私有化部署的,因为网络问题。app安装完之后提示更新,更新完之后提示更新又弹出来了,重启app也是一样,查看history都是pending状态,没有active的
image

代码里配置的是立即安装:
codePush.sync({ installMode: codePush.InstallMode.IMMEDIATE, updateDialog: { optionalIgnoreButtonLabel: '稍后', optionalInstallButtonLabel: '立即更新', mandatoryContinueButtonLabel : '立即更新', optionalUpdateMessage: '有新版本了,是否更新?', mandatoryUpdateMessage: '该版本必须更新,请立即更新?', title: '更新提示' }, }, this.statusChanged.bind(this), this.downloadProgress.bind(this));

版本:
code-push-cli:2.1.9
react-native:0.71.3
react-native-code-push:8.3.1

@liufawei123
Copy link

别用官方的react-native-code-push用这个看看https://github.com/lisong/react-native-code-push

support iOS and Android
use "react-native-code-push": "git+https://[email protected]/lisong/react-native-code-push.git" instead "react-native-code-push": "x.x.x" in package.json
change apps.is_use_diff_text to 1 in mysql codepush database

@tigerlx
Copy link
Author

tigerlx commented Oct 13, 2024 via email

@liufawei123
Copy link

react-native-code-push的最高版本是5.4.2, 你放的多少

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