thaliproject / postcardapp

A sample app to demonstrate how to build Thali applications
MIT License
22 stars 5 forks source link

WKWebView update for iOS #127

Open deadlyfingers opened 8 years ago

deadlyfingers commented 8 years ago

WKWebView has been updated recently -
https://cordova.apache.org/news/2016/02/09/plugins-release.html

Initial tests with a vanilla Cordova 6 project seem to show it works with Appium. So just have to check reliability with Camera plugin as this was the issue for removing it before.

deadlyfingers commented 8 years ago

Parking WKWebView for now - cordova-plugin-wkwebview-engine 1.0.2 has issues with Camera plugin on iPhone 6 Plus that won't fix here. After choosing photo the screen just goes white / blank.
Xcode Log:

Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.
appEnteringBackground wasn't registered

2016-02-23 12:20:45.143 PostCardApp[10203:2988842] Received memory warning.
appEnteredForeground wasn't registered

2016-02-23 12:20:51.557 PostCardApp[10203:2989354] Communications error: <OS_xpc_error: <error: 0x19d738af0> { count = 1, contents =
    "XPCErrorDescription" => <string: 0x19d738e50> { length = 22, contents = "Connection interrupted" }
}>

The bug can be tracked here: https://issues.apache.org/jira/browse/CB-10339

scottdixon-zz commented 8 years ago

@deadlyfingers - can you please confirm you're able to automate a WKWebView with Appium? I'm looking into adding WKWebView support to Appium but my preliminary tests show it's already supported.

deadlyfingers commented 8 years ago

@scottdixon need to run tests with new Appium 1.5.0 release, but the beta version was detecting the webview with WKWebView

scottdixon-zz commented 8 years ago

Sweet. It looks like there's an issue with multiple WKWebViews - investigating