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

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

Open tigerlx opened this issue 1 year ago • 3 comments

我是从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

tigerlx avatar Oct 11 '24 05:10 tigerlx

别用官方的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

liufawei123 avatar Oct 13 '24 10:10 liufawei123

替换过执行yarn install报错:error Couldn't find the binary git 

李小虎 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年10月13日(星期天) 晚上6:06 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [lisong/code-push-server] 下载完之后不安装,一直提示要更新 (Issue #393)

别用官方的react-native-code-push用这个看看https://github.com/lisong/react-native-code-push support iOS and Android use "react-native-code-push": @./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
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.
>

tigerlx avatar Oct 13 '24 12:10 tigerlx

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

liufawei123 avatar Oct 13 '24 12:10 liufawei123