New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ios): Supported WKURLSchemeHandler to load custom url scheme #10751
Conversation
Tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR passed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FR Passed. HTML assigned to WebView "html" property is now able to access app's local files.
Tested using the following test case:
var htmlText =
'<!DOCTYPE html>' +
'<html>' +
' <head>' +
' <meta name="viewport" content="width=device-width, initial-scale=1.0">' +
' </head>' +
' <body>' +
' <p>Local Image File</p>' +
// ' <img src="assets/images/tab1.png"/>' +
' <img src="app://Resources/assets/images/tab1.png"/>' +
' </body>' +
'</html>';
var window = Ti.UI.createWindow();
var webView = Ti.UI.createWebView({
html: htmlText,
});
window.add(webView);
window.open();
Test Environment
iPhone 6 (12.1 Sim)
APPC CLI: 7.0.10-17
Operating System Name: Mac OS Mojave
Operating System Version: 10.14.2
Node.js Version: 8.9.1
Xcode 10.1
@ssjsamir , can you uncomment the Note that relative img paths such as "assets/images/..." is the higher priority since its cross-platform with Android and Windows too. The "app://" URL scheme is iOS only. |
@ssjsamir I have updated PR to fix paths "assets/images/tab1.png" also. Please verify again. |
@jquick-axway @vijaysingh-axway Now able to see the image as well when using |
JIRA:
https://jira.appcelerator.org/browse/TIMOB-26860
Test: