Skip to content

Commit d44d03a

Browse files
author
max-mironov
committed
Fixed issue when React native app on Android fails to restart after an update, crashing
See #910 for details
1 parent 8265686 commit d44d03a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CodePush.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ async function checkForUpdate(deploymentKey = null) {
4646
queryPackage = localPackage;
4747
} else {
4848
queryPackage = { appVersion: config.appVersion };
49-
if (config.packageHash) {
50-
queryPackage.packageHash = config.packageHash;
49+
if (Platform.OS === "ios" && config.packageHash) {
50+
queryPackage.packageHash = config.packageHash;
5151
}
5252
}
5353

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-code-push",
3-
"version": "1000.0.0-beta",
3+
"version": "2.1.1-beta",
44
"description": "React Native plugin for the CodePush service",
55
"main": "CodePush.js",
66
"typings": "typings/react-native-code-push.d.ts",

0 commit comments

Comments
 (0)