RMET-5110 ::: added fix do allow open url InAppBrowser and download a file#46
RMET-5110 ::: added fix do allow open url InAppBrowser and download a file#46OS-ruimoreiramendes wants to merge 1 commit intomainfrom
Conversation
@OS-ruimoreiramendes Before it was already possible to navigate within the same web view right? |
@OS-ruimoreiramendes how does the same use case work in Android? Did the downloads already work? |
|
@OS-ruimoreiramendes if we're adding any new functionality, which I believe we might be, then we need to consider adding it on Android as well (if it doesn't already exist) |
|
@alexgerardojacinto as discussed on the call, since this PR introduces download functionality which was not previously supported (and would need to be considered for Android as well), I'll keep this PR open for future reference in case we decide to introduce this feature. |
Description
Handle
window.open()and file downloads inWKWebViewon iOSOn iOS,
WKWebViewsilently ignoreswindow.open()calls and cannot handle file download responses by default. This fix addresses both issues:window.open()to navigate within the same WebView, preserving the custom User AgentdecidePolicyFornavigationResponse to detect non-displayable MIME types and triggerWKDownload(iOS 14.5+), with aUIActivityViewControllerto allow the user to save or share the downloaded fileContext
Addresses: https://outsystemsrd.atlassian.net/browse/RMET-5110
Type of changes
Tests
Screenshots (if appropriate)
Checklist
RNMT-XXXX <title>