From d07167544bebcea56193e992a4edb8cd77e387eb Mon Sep 17 00:00:00 2001 From: hupeng Date: Sat, 20 Jul 2019 18:46:55 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=B5=8B=E8=AF=95][=E5=8D=87=E7=BA=A7]:?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E6=96=B9=E5=BC=8F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/App.js b/App.js index f228c7e..fb4dc35 100644 --- a/App.js +++ b/App.js @@ -117,7 +117,9 @@ export default class MyPage extends Component { codePushUpdate() { CodePush.allowRestart(); CodePush.sync( - { installMode: CodePush.InstallMode.ON_NEXT_RESUME}, + + { mandatoryInstallMode: CodePush.InstallMode.IMMEDIATE, + installMode: CodePush.InstallMode.IMMEDIATE}, this.codePushStatusDidChange.bind(this), this.codePushDownloadDidProgress.bind(this) );