react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Changes are not reflecting after download and install on IOS

Open jitish2 opened this issue 5 years ago • 41 comments

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 avatar Feb 08 '21 16:02 jitish2

I having same issue. +1

npjoge avatar Mar 09 '21 05:03 npjoge

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

Biciato avatar Mar 17 '21 12:03 Biciato

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

raen79 avatar Apr 01 '21 15:04 raen79

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.```

raen79 avatar Apr 02 '21 17:04 raen79

Did anyone get the solution?

jitish2 avatar Apr 05 '21 10:04 jitish2

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

raen79 avatar Apr 05 '21 15:04 raen79

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

raen79 avatar Apr 20 '21 10:04 raen79

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

jitish2 avatar May 14 '21 05:05 jitish2

@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.

Abhinandan-Kushwaha avatar May 23 '21 17:05 Abhinandan-Kushwaha

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

rhydvik avatar May 26 '21 07:05 rhydvik

Facing same in android build

gourav-singhal avatar Jun 07 '21 12:06 gourav-singhal

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

No New Changes are reflect

viveksharma8130 avatar Jul 21 '21 16:07 viveksharma8130

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

Android works fine, iOs doesn't

MatthiasDh avatar Sep 08 '21 13:09 MatthiasDh

@rhydvik were you able to fix this?

MatthiasDh avatar Sep 08 '21 13:09 MatthiasDh

@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.

rhydvik avatar Sep 09 '21 07:09 rhydvik

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 avatar Dec 13 '21 13:12 ghost

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?

johnhaup avatar Dec 21 '21 18:12 johnhaup

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

RahulPant-coder avatar Dec 28 '21 08:12 RahulPant-coder

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 avatar Feb 26 '22 09:02 ghost

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 avatar Mar 13 '22 18:03 ghost