Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes are not reflecting after download and install on IOS #2030

Closed
jitish2 opened this issue Feb 8, 2021 · 41 comments
Closed

Changes are not reflecting after download and install on IOS #2030

jitish2 opened this issue Feb 8, 2021 · 41 comments

Comments

@jitish2
Copy link

jitish2 commented Feb 8, 2021

Hi Code Push Team, I'm facing an issue On IOS after bundle downloaded and Install on IOS devices new changes are not reflecting and android it is working fine.

Check Screenshot of App Center and Code Implementation

App Center Dashboard
Screenshot 2021-02-08 at 9 37 08 PM

App.js
Screenshot 2021-02-08 at 10 32 34 PM

AppDelegate.m
Screenshot 2021-02-08 at 10 24 23 PM

Environment

  • react-native-code-push": "^6.4.0"
  • react-native": "^0.62.2",
  • iOS 10.15.6
  • Does this reproduce on a debug build or release build? => Both
  • Does this reproduce on a simulator, or only on a physical device? => Both

Please help me out and Let me know if you need anything else.

@jitish2 jitish2 changed the title Changes are not reflecting after update and install on IOS Changes are not reflecting after download and install on IOS Feb 8, 2021
@npjoge
Copy link

npjoge commented Mar 9, 2021

I having same issue. +1

@Biciato
Copy link

Biciato commented Mar 17, 2021

I'm having the same issue and logs show this:

2021-03-16 08:17:41.743217-0300 BePay[1352:373134] [javascript] [CodePush] Checking for update.
2021-03-16 08:17:42.888652-0300 BePay[1352:373134] [javascript] [CodePush] Downloading package.
2021-03-16 08:17:44.782845-0300 BePay[1352:373133] [native] Sending CodePushDownloadProgress with no listeners registered.
2021-03-16 08:17:45.088156-0300 BePay[1352:373784]
[CodePush] Applying diff update.
2021-03-16 08:17:45.088334-0300 BePay[1352:373784]
[CodePush] Verifying hash for folder path: /var/mobile/Containers/Data/Application/87207FE7-B1AD-45E0-81E3-671F42E5DE9B/Library/Application Support/CodePush/847f7f9b9f26d69b076962d3d30e241b0a867c2bcdfc35dfabc1cffa50514a1f
2021-03-16 08:17:45.296074-0300 BePay[1352:373784]
[CodePush] Manifest string: (
"CodePush/main.jsbundle:29c695d0a62c3eb1f56ce1ff1e4d223bc08d4e290e03153cbf0ef4d0839964be",
"CodePush/assets/node_modules/native-base/dist/src/basic/Icon/NBIcons.json:847455488cfa40f5bb722b4fae0cd8b364027f0b695a6f9a2f876ae3c71ab603",
"CodePush/assets/node_modules/moment-timezone/data/packed/latest.json:7e453bc469cb078cf1f72d68b473002272633802363ee3493311d98c495d6a93",
"CodePush/assets/node_modules/css-tree/package.json:7cd252b1712172128335e795c76c55b34ea63bb51a2e3cf9b7ba9305c5adcf44",
"CodePush/assets/node_modules/css-tree/data/patch.json:5d263d5256ffe03fed507823c1d62f252a107d9b86f9451c1929bb5ebf34d8ec",
"CodePush/assets/node_modules/@react-navigation/stack/src/views/assets/[email protected]:3ddd0773ed27e23d25789f301731b3ac455ad8be5aa27a0a1b838f89c6d27225",
"CodePush/assets/node_modules/@react-navigation/stack/src/views/assets/[email protected]:2b7443a9a58e92ca11a575bdc11598615a57dde305cd8ce70d602606b302cd98",
"CodePush/assets/node_modules/@react-na
2021-03-16 08:17:45.300838-0300 BePay[1352:373784]
[CodePush] Expected hash: 847f7f9b9f26d69b076962d3d30e241b0a867c2bcdfc35dfabc1cffa50514a1f, actual hash: fca52e98324dea2cfee187c75c6cfe7c179b543aa7f2009cdef6c7811fcffcae
2021-03-16 08:17:45.301045-0300 BePay[1352:373784]
[CodePush] The update contents failed the data integrity check.
2021-03-16 08:17:45.311875-0300 BePay[1352:373134] [javascript] [CodePush] An unknown error occurred.
2021-03-16 08:17:45.312034-0300 BePay[1352:373134] [javascript] [CodePush] The update contents failed the data integrity check.

So, we can conclude that it's not getting the right hashes. It's only on iOS

@raen79
Copy link
Contributor

raen79 commented Apr 1, 2021

We are having the same issue, have you found a solution?

@raen79
Copy link
Contributor

raen79 commented Apr 2, 2021

With the same data integrity error:

2021-04-01 18:07:27.985351+0200 paters_rn[62827:6524162] [javascript] [CodePush] Downloading package.
2021-04-01 18:07:28.384039+0200 paters_rn[62827:6534108] [native] Sending CodePushDownloadProgress with no listeners registered.
[CodePush] Applying diff update.
[CodePush] Verifying hash for folder path: /Users/eranpeer/Library/Developer/CoreSimulator/Devices/206E0D93-38F4-4273-A468-D05FC0D84BDE/data/Containers/Data/Application/BD5B1BAE-7B46-488D-AFF8-003FB6EE10CA/Library/Application Support/CodePush/401429e0ef823eb3ef4f091553ade7fce228120ac195ddc3dcfd18ca4e99e2d9
[CodePush] Manifest string: (
"CodePush/main.jsbundle:e2abe4e022d9699100ad1322a9792e47984c3a66e9cecbc9ad2c7da8c5acde54",
"CodePush/assets/locales/en.json:7f9e37482cecda411947d763d2486775b6fb0e590770469207a672a787123db3",
"CodePush/assets/app.json:590f86d6cd11f7aadcbbbd3b368307878c420dc609ed10f0350a70ec82721d0e",
"CodePush/assets/node_modules/react-native/package.json:0087a3a7be0dd03690b6c32626875ac2db1b5b19f4fa2e78f35e15bcb1e92057",
"CodePush/assets/node_modules/css-color-keywords/colors.json:354f1816e82e3aa407d5493a59ff75f6d073d18e39db48e792b3bde951419ff5",
"CodePush/assets/node_modules/@react-navigation/stack/src/views/assets/[email protected]:3ddd0773ed27e23d25789f301731b3ac455ad8be5aa27a0a1b838f89c6d27225",
"CodePush/assets/node_modules/@react-navigation/stack/src/views/assets/[email protected]:2b7443a9a58e92ca11a575bdc11598615a57dde305cd8ce70d602606b302cd98",
"CodePush/assets/node_modules/@react-navigation/stack/src/views/assets/back-icon.png:2cdfeb8e5ccde7976f7012fb8cce73
[CodePush] Expected hash: 401429e0ef823eb3ef4f091553ade7fce228120ac195ddc3dcfd18ca4e99e2d9, actual hash: ac957e370d67678f22e843ccd046f1bed67ebe100e62ae56844d8a77822048b6
[CodePush] The update contents failed the data integrity check.
2021-04-01 18:07:28.963611+0200 paters_rn[62827:6524162] [javascript] [CodePush] An unknown error occurred.
2021-04-01 18:07:28.963829+0200 paters_rn[62827:6524162] [javascript] [CodePush] The update contents failed the data integrity check.```

@jitish2
Copy link
Author

jitish2 commented Apr 5, 2021

Did anyone get the solution?

@raen79
Copy link
Contributor

raen79 commented Apr 5, 2021

No, I looked through every file and could not find the issue..

@raen79
Copy link
Contributor

raen79 commented Apr 20, 2021

This PR fixes the problem for me: #2078, it seems to be caused by foreign (Japanese in my case) characters.

@jitish2
Copy link
Author

jitish2 commented May 14, 2021

@raen79 I also did the same thing but it won't work for me.

@Abhinandan-Kushwaha
Copy link

@raen79 I am still facing the same issue. I don't have any foreign characters in my app. When I release an update using Codepush, the changes are not reflected in the iOS app.

@rhydvik
Copy link

rhydvik commented May 26, 2021

We are having the same issue, I am not seeing any errors while doing code push. It gets installed on the device without any crashes but changes are not reflecting.

Screenshot 2021-05-26 at 1 21 22 PM

@gourav-singhal
Copy link

Facing same in android build

@viveksharma8130
Copy link

I didn't get any kind of error
Everything is successful but nothing is happen in the app

No New Changes are reflect

@MatthiasDh
Copy link

Same issue here. Codepush shows installed & downloaded but changes are not reflecting to app.

Android works fine, iOs doesn't

@MatthiasDh
Copy link

@rhydvik were you able to fix this?

@rhydvik
Copy link

rhydvik commented Sep 9, 2021

@MatthiasDh I ended up upgrading the app-center and code push version and it works. I was not able to figure out why it was not working on the earlier version.

@ghost ghost added the stale label Dec 13, 2021
@ghost
Copy link

ghost commented Dec 13, 2021

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

@johnhaup
Copy link

johnhaup commented Dec 21, 2021

We're facing this on Android only.

Package Versions

"appcenter": "^3.0.0"
"appcenter-analytics": "^3.0.0"
"appcenter-crashes": "^3.0.0"
"react-native": "0.63.4"
"react-native-code-push": "^6.3.0"

We have verified in Logcat that the bundles downloads and installs and the app restarts from the bundle, but we don't see any changes.

Logcat

2021-12-21 09:42:04.530 3485-4409/com.[app name] I/ReactNativeJS: [CodePush] Reporting binary update (0.9.2)
2021-12-21 09:42:23.955 3485-4615/com.[app name] D/ReactNative: [CodePush] Applying full update.
2021-12-21 09:42:24.275 3485-4410/com.[app name] D/ReactNative: [CodePush] Loading JS bundle from "/data/user/0/com.[app name]/files/CodePush/1b956d09a60e7837e24c9d6cbb72642875974a095320529db5ece35235808bd9/CodePush-Android/index.android.bundle"
2021-12-21 09:42:24.276 3485-4410/com.[app name] D/ReactNative: [CodePush] Restarting app
2021-12-21 09:42:36.946 3485-7421/com.[app name] I/ReactNativeJS: [CodePush] Reporting CodePush update success (v15)

Should we be able to see changes on the Android emulator?

@ghost ghost removed the stale label Dec 21, 2021
@RahulPant-coder
Copy link

RahulPant-coder commented Dec 28, 2021

Its saying [CodePush] Reporting CodePush update success , but changes are not reflecting in simulator.

@ghost ghost added the stale label Feb 26, 2022
@ghost
Copy link

ghost commented Feb 26, 2022

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

@ghost
Copy link

ghost commented Mar 13, 2022

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

@ghost ghost closed this as completed Mar 13, 2022
@FadiAboMsalam
Copy link

why was this closed ! i am facing same issue

@ghost ghost removed the stale label Mar 31, 2022
@hashkazi00
Copy link

Facing this issue on IOS

@yadavmurari111
Copy link

facing the same issue in android , build is pushed successfully but changes are not reflecting in app

@LucasArgate
Copy link

LucasArgate commented May 16, 2022

facing the same issue in android , build is pushed successfully but changes are not reflecting in app

+1

@renanbronchart
Copy link

+1 on iOS

2 similar comments
@thenriquedb
Copy link

+1 on iOS

@alexrogo
Copy link

+1 on iOS

@alexrogo
Copy link

Our problem was that we had overlooked an important step in the documentation.
Actually, some tutorials are completly missing this step.

In your AppDelegate.m file, make sure to import #import <CodePush/CodePush.h> and have this line included:
return [CodePush bundleURL];

@jitish2 set it up correctly, but for us it was the solution.

the file should look like this:
image

@thenriquedb
Copy link

I managed to solve it by passing the -m flag in the command.
Example: appcenter codepush release-react -a <ownerName>/MyApp-iOS -m --description "Modified the header color"

@vksgautam1
Copy link

+1 on iOS

@mateomarconi
Copy link

+1 on IOS

@MoamberRaza
Copy link

+1 Android is not reflecting newest changes. however i tried by disable multi-deployment and test it by using one production key.

@mashad6
Copy link

mashad6 commented Dec 13, 2022

@MoamberRaza did you find any solution? iam facing the same issue

@MoamberRaza
Copy link

@mashad6 it been fixed now can you share the ( @Overrided ) code of MainApplication.java.

@Overrided
Copy link

Guess I'm tagget by mistake @MoamberRaza ))
Have a good day)

@mashad6
Copy link

mashad6 commented Dec 13, 2022

@MoamberRaza
@ Override
protected String getJSBundleFile() {
return CodePush.getJSBundleFile();
}

@MoamberRaza
Copy link

@mashad6 are you trying to use multi deployment feature. ? and you are sure you have followed properly documentation.

@hypesol
Copy link

hypesol commented Jan 9, 2023

react-native: "0.70.6"
react-native-code-push: "^7.0.5"

Changes are not reflecting on iPhone

@NguyenQuocAnDev27
Copy link

NguyenQuocAnDev27 commented Apr 7, 2023

I got the same issue. RN ver 0.66.5 and CodePush ver 7.0.4 (Because ver 8.0.0 cause some error).
I got Reporting Codepush update success (v3). But nothing changed. So the display should be text "App version 0.1.2", but it show "App version 0.1.1".
My code here:
import React from 'react';
import {
SafeAreaView,
ScrollView,
StatusBar,
StyleSheet,
Text,
useColorScheme,
View,
} from 'react-native';
import codePush from "react-native-code-push";

const App = () => {
const green = "#00FF00";
const blue = '#00BFFF';
const gray = "#888";
const white = '#FFFFFF';
const black = '#000';
const version = {
V1: {
name: '0.1.1',
colorBackground: blue,
colorFont: black
},
V2: {
name: '0.1.2',
colorBackground: gray,
colorFont: white
}
}
const selectedVersion = version.V1;
return (
<View
style={{
width: '100%',
height: '100%',
backgroundColor: selectedVersion.colorBackground,
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
}}>
<Text
style={{
color: selectedVersion.colorFont,
fontSize: 25
}}
>
App version {selectedVersion.name}


);
}
const deploymentKey = "o-ok5XyJlOr8vV3VyBW31aqrelcEB1V9YmUw6";

export default codePush({
checkFrequency: codePush.CheckFrequency.ON_APP_START,
installMode: codePush.InstallMode.IMMEDIATE,
deploymentKey: deploymentKey
})(App);

@xuandac
Copy link

xuandac commented May 5, 2023

I'm having the same problem on Android. Who can help me ?

@tgp-fk
Copy link

tgp-fk commented Mar 21, 2024

@yadavmurari111 @MoamberRaza @xuandac anyone of you were able to solve this issue? facing the same on android for a while now.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests