Skip to content

Conversation

amirghm
Copy link
Contributor

@amirghm amirghm commented Jul 12, 2025

This commit addresses an issue with loading local files on real iOS devices and increments the library version.

iOS:

  • When loading a file:// URL, the loadUrl function now uses NSSearchPathForDirectoriesInDomains with NSDocumentDirectory to determine the correct readAccessURL. This ensures that files stored in the app's document directory can be loaded correctly on physical devices, which was a previously reported issue.
  • If a valid readAccessURL cannot be determined from the document directory, the WebView will not attempt to load the file URL using loadFileURL.
  • Regular HTTP/HTTPS URLs are handled as before.

Build:

  • Incremented VERSION_NAME to 2.0.2.

amirghm added 2 commits July 13, 2025 00:18
This commit addresses an issue with loading local files on real iOS devices and increments the library version.

**iOS:**
- When loading a `file://` URL, the `loadUrl` function now uses `NSSearchPathForDirectoriesInDomains` with `NSDocumentDirectory` to determine the correct `readAccessURL`. This ensures that files stored in the app's document directory can be loaded correctly on physical devices, which was a previously reported issue.
- If a valid `readAccessURL` cannot be determined from the document directory, the WebView will not attempt to load the file URL using `loadFileURL`.
- Regular HTTP/HTTPS URLs are handled as before.

**Build:**
- Incremented `VERSION_NAME` to `2.0.2`.
@KevinnZou KevinnZou merged commit 09e1fe0 into KevinnZou:main Jul 21, 2025
4 checks passed
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