apache / apache/cordova-plugin-file-transfer
Compatibility with cordova-plugin-file@7 Android URLs
- Dominant language
- JavaScript
- Stars
- 606
- Forks
- 874
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
the new release 7.0.0 of `cordova-plugin-file` changed the format of URLs generated via `file.toURL()` and `file.toInternalURL()` from `cdvfile://localhost/persistent/...` to `https://localhost/__cdvfile_persistent__/...` on Android. This plugin does not seem to be able to handle them yet.
As a workaround, I am currently using `file.nativeURL`, which seems to work quite well.
Thanks for looking into it!
Contributor guide
Research direction
Start by reproducing the issue with cordova-plugin-file@7 on Android, comparing file.toURL() and file.toInternalURL() output with the formats described in the report. Trace where this plugin handles cdvfile:// and https://localhost/__cdvfile_persistent__/ URLs; done means the new Android URLs work without requiring file.nativeURL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100