Skip to content

Fixes custom ios schemes and file path issues on some IOS devices. (Supersedes #253)#258

Open
weareu wants to merge 8 commits intochrisben:masterfrom
wyobi:master
Open

Fixes custom ios schemes and file path issues on some IOS devices. (Supersedes #253)#258
weareu wants to merge 8 commits intochrisben:masterfrom
wyobi:master

Conversation

@weareu
Copy link

@weareu weareu commented Aug 15, 2022

This change is required for custom URL scemes and cordova-ios 6+ to function without file and new cordova-file-plugin hooks on URL. It also previously fixed problematic folders in #253 but is now required for later versions on IOS.

@weareu
Copy link
Author

weareu commented Aug 15, 2022

Also Added android-cordova 10+ changes where cdvfile is used on http. This causes the latest file transfer plugin to fail. I now send .nativeUrl to file transfer which interprets the file correctly and use cdfile via toURL or toNativeUrl or whatever as they all now return the http path for client side path or cached path.

@chrisben
Copy link
Owner

Could you please update the conflicts before I merge it. thanks.

weareu and others added 6 commits February 4, 2025 11:45
…d WebView

Modern Android WebView returns https://localhost/__cdvfile_*/ from toURL()
which Cordova FileTransfer cannot use as a write destination, causing
CONNECTION_ERR (code 3). When native=true, use toNativeURL() instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This reverts commit 72e3786, reversing
changes made to 940d080.
Single consolidated log line showing FileTransfer error code name,
source, target, http_status and exception for easier debugging.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

3 participants