Skip to content

fix(ios): http body in error and send progress only when success#59

Merged
OS-pedrogustavobilro merged 3 commits into
mainfrom
RMET-4893
Feb 4, 2026
Merged

fix(ios): http body in error and send progress only when success#59
OS-pedrogustavobilro merged 3 commits into
mainfrom
RMET-4893

Conversation

@OS-pedrogustavobilro

Copy link
Copy Markdown
Contributor

Final PR to address #18 - iOS was not returning the http body in the error object when an http error occured. Furthermore, I saw that iOS was notifying download progress when an HTTP error occurred, which is incorrect.

Both these fixes come from the iOS native library consumed by this plugin, implementation in ionic-team/ion-ios-filetransfer#13.

This PR also adds a few more options to the example app to be able to receive HTTP errors.

@OS-pedrogustavobilro OS-pedrogustavobilro merged commit da7a5fd into main Feb 4, 2026
8 checks passed
@OS-pedrogustavobilro OS-pedrogustavobilro deleted the RMET-4893 branch February 4, 2026 10:29
capacitor-bot pushed a commit that referenced this pull request Feb 10, 2026
## [2.0.4](v2.0.3...v2.0.4) (2026-02-10)

### Bug Fixes

* Align HTTP error message ([#55](#55)) ([a1702d0](a1702d0))
* **android:** AGP 9.0 no longer supporting `proguard-android.txt` ([#57](#57)) ([2eea2f7](2eea2f7))
* **ios:** http body in error and send progress only when success ([#59](#59)) ([da7a5fd](da7a5fd))
* **web:** Check the existence of the folder before mkdir. ([#33](#33)) ([0f0658f](0f0658f))
OS-pedrogustavobilro added a commit that referenced this pull request Feb 11, 2026
Cherry-picked for Capacitor 7

* chore: Minor changes in app error display

* chore: Add options in example app for http error

* fix(ios): http body in error and send progress only when success

Via native library update:

References:

- ionic-team/ion-ios-filetransfer#13
- https://outsystemsrd.atlassian.net/browse/RMET-4893
capacitor-bot pushed a commit that referenced this pull request Feb 11, 2026
## [1.0.10](v1.0.9...v1.0.10) (2026-02-11)

### Bug Fixes

* Align HTTP error message ([#55](#55)) ([d50c7d6](d50c7d6))
* **android:** Correctly returning headers for upload ([#46](#46)) ([93eab42](93eab42))
* **ios:** http body in error and send progress only when success ([#59](#59)) ([d0e43cc](d0e43cc))
* **ios:** Send upload response code as string instead of number ([#49](#49)) ([ba0c1d2](ba0c1d2))
* **web:** Check the existence of the folder before mkdir. ([#33](#33)) ([58ea4b6](58ea4b6))
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

Successfully merging this pull request may close these issues.

2 participants