diff --git a/src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java b/src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java index c8bc2d12..2d848b4f 100644 --- a/src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java +++ b/src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java @@ -419,7 +419,7 @@ private boolean isWwwFolderExists() { * @return true if application was update; false - otherwise */ private boolean isApplicationHasBeenUpdated() { - return pluginInternalPrefs.getAppBuildVersion() < VersionHelper.applicationVersionCode(cordova.getActivity()); + return pluginInternalPrefs.getAppBuildVersion() != VersionHelper.applicationVersionCode(cordova.getActivity()); } /** diff --git a/src/ios/HCPPlugin.m b/src/ios/HCPPlugin.m index 25c1c918..9270d603 100644 --- a/src/ios/HCPPlugin.m +++ b/src/ios/HCPPlugin.m @@ -105,7 +105,7 @@ - (void)loadApplicationConfig { */ - (BOOL)isWWwFolderNeedsToBeInstalled { NSFileManager *fileManager = [NSFileManager defaultManager]; - BOOL isApplicationUpdated = [NSBundle applicationBuildVersion] > _pluginInternalPrefs.appBuildVersion; + BOOL isApplicationUpdated = [NSBundle applicationBuildVersion] != _pluginInternalPrefs.appBuildVersion; BOOL isWWwFolderExists = [fileManager fileExistsAtPath:_filesStructure.wwwFolder.path]; BOOL isWWwFolderInstalled = _pluginInternalPrefs.isWwwFolderInstalled;