-
Notifications
You must be signed in to change notification settings - Fork 335
downloadProgress callback no longer being called on cordova-plugin-code-push v2.0.0 #661
Comments
I'm getting the same here. I found RemotePackage.prototype.download on bin/www/remotePackage.js method is receiving downloadProgress but it's not being called. |
Same symptoms here. The |
Same here. Also, I see the app being downloaded and installed. But, stuck with white screen after completion. Dashboard reports rollback for the update, after that. Is that related to this? |
@ankitjainOfficial if your error is only reproducible in iOS, then you might want to check that no file of your app contains utf8 multibyte characters. Seems like the iOS cordova push fails the integrity check of the update due to how the hash is calculated and the handling of filename encoding. If you just use ASCII characters for your filenames you can rule this problem out. |
@trampi Thanks for the comment. It's just a normal ionic/angular build. So, I didn't find any multibyte characters. |
@ankitjainOfficial, ahh, I see. We have a angular / cordova application as well (no ionic), but had a static image asset named "weiß.jpg" (german for "white") -> the "ß"-Umlaut in the filename of the static asset lead to errors after installing code push updates. The error reported through the console on iOS-devices was "The update contents failed the data integrity check". We could not reproduce this error on Android devices, only iOS-devices / simulators were affected. Maybe you could open a new ticket with the error output of codepush in the dev console? That should help finding the root cause. All the best, |
@rex-iotum did you have any progress on this? i'm having the same issue. Dependency set is like below
|
As far as I know. the cordova-plugin-advanced-http used to download don't have support for download progress. |
Any solution now? the downloadProgress callback still can no be fire. |
You can try v1.12.0, I downgrade to this version, the downloadProgress callback function working well. Good luck for you. https://www.npmjs.com/package/cordova-plugin-code-push/v/1.12.0 |
Description
The
downloadProgress
callback is no longer being called since the switch tocordova-plugin-advanced-http
.The plugin source code calling
downloadProgress
has been removed fromRemotePackage.prototype.download
.The docs still reference as if
downloadProgress
is still going to be called.https://github.com/microsoft/cordova-plugin-code-push#codepushsync
Reproduction
codepush.sync
with the documentedcodePush.sync(syncCallback?, syncOptions?, downloadProgress?, syncErrback?);
downloadProgress
callback functionAdditional Information
The text was updated successfully, but these errors were encountered: