-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
downloadProgressCallback not working in IOS #2790
Comments
Hi @ahsanparacha02, |
Android: Iphone Mentioned screenshot shows that the iOS progress bar is not updating. The receivedBytes and totalBytes events are not being triggered on iOS.
|
@ahsanparacha02 Could you please provide demo application so we could use it to reproduce issue on our side? |
Do you need ipa file? |
We need a small demo project in which you can reproduce this issue, that way we can debug the source code and see what's going on. Ipa won't do it since it is an archive containing compiled code. |
same problem! |
|
Steps
- node >18
- yarn install
- sync project in android studio
- yarn android
Please pull latest code from repo before perform above steps and let me know in case any issue
Thanks
On Wed, Jan 29, 2025 at 11:43 PM Ahsan paracha ***@***.***>
wrote:
… Can u send me the steps you perform to run application
On Wed, Jan 29, 2025 at 9:42 PM MikhailSuendukov ***@***.***>
wrote:
> Hello, I tried to run your app but when I run npm run android I get the
> following error:
>
> % npm run android
>
> ***@***.*** android
> react-native run-android
>
> (node:19313) [DEP0040] DeprecationWarning: The punycode module is
> deprecated. Please use a userland alternative instead.
> (Use node --trace-deprecation ... to show where the warning was created)
> info Installing the app...
>
> info 💡 Tip: Make sure that you have set up your development environment
> correctly, by running npx react-native doctor. To read more about doctor
> command visit:
> https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
>
> error Failed to install the app. Command failed with Unknown system error
> -8: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
> spawn Unknown system error -8.
> info Run CLI with --verbose flag for more details.
>
> And this error does not occur to me on a newly created project, so I
> think that the issue may lie in the demo project. Сould you please help me
> with solving this problem and provide steps by which I can reproduce your
> original error.
>
> —
> Reply to this email directly, view it on GitHub
> <#2790 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AISOL5RVUPYPRLFVUTP4TFT2NEAH3AVCNFSM6AAAAABUHNZNQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRSGE3DEMRWGE>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
any update ? |
I added additional logging in |
Yes, you are correct. However, if the bundle size increases above 10MB, the issue will replicate. Right now, in my app, the progress bar initially shows 0%. Once the bundle download is complete, it jumps directly to 100%. The progress between 0% and 100% is not being triggered. |
When upgrading from version v8.0.2 to v9.0.1 in React Native 0.76.5, the downloadProgressCallback does not trigger for iOS, while it works fine on Android. It only triggers once the bundle download is complete.
Here is code snippet.
`
async sync() {
CodePush.sync(
{ installMode: CodePush.InstallMode.IMMEDIATE, updateDialog: false },
this.codePushStatusDidChange,
this.codePushDownloadDidProgress
);
CodePush.allowRestart();
}
codePushDownloadDidProgress(event){
this.setState({
progress: (event.receivedBytes / event.totalBytes).toFixed(2) * 100,
});
MyToast.popToast(
Progress ${(event.receivedBytes / event.totalBytes).toFixed(2) * 100}
);
};
`
The text was updated successfully, but these errors were encountered: