lisong / code-push-server

CodePush service is hot update services which adapter react-native-code-push and cordova-plugin-code-push - 热更新
MIT License
1.84k stars 546 forks source link

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

Open tigerlx opened 1 month ago

tigerlx commented 1 month ago

我是从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 commented 1 month ago

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

support iOS and Android
use "react-native-code-push": "git+https://git@github.com/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 commented 1 month ago

替换过执行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:
@.>

liufawei123 commented 1 month ago

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