Skip to content
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 (8_0_X) #10750

Merged
merged 5 commits into from Mar 7, 2019

Conversation

vijaysingh-axway
Copy link
Contributor

@build build added this to the 8.0.0 milestone Mar 5, 2019
@build build requested a review from a team March 5, 2019 10:37
@build
Copy link
Contributor

build commented Mar 5, 2019

Fails
🚫 Tests have failed, see below for more information.
Messages
📖

💾 Here's the generated SDK zipfile.

📖 ❌ 1 tests have failed There are 1 tests failing and 449 skipped out of 2991 total tests.

Tests:

Classname Name Time Error
android.emulator.Titanium.Android activity callbacks 5.002 timeout of 5000ms exceeded

Generated by 🚫 dangerJS against ae9805e

@janvennemann janvennemann changed the title fix(ios): Supported WKURLSchemeHandler to load custom url scheme fix(ios): Supported WKURLSchemeHandler to load custom url scheme (8_0_X) Mar 6, 2019
@ssjsamir ssjsamir self-requested a review March 6, 2019 13:55
Copy link
Contributor

@ssjsamir ssjsamir left a 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 6S plus (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
Copy link
Contributor

ssjsamir commented Mar 7, 2019

FR Passed: Able to use 'img src="assets/images/tab1.png"/' as well as img src="app://Resources/assets/images/tab1.png"/

@sgtcoolguy sgtcoolguy merged commit 3fb6121 into tidev:8_0_X Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants