Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Cordova WKWebView@1.0.1 and Camera@2 iOS 9 photo glitch #104

Open
deadlyfingers opened this issue Jan 6, 2016 · 8 comments
Open

Cordova WKWebView@1.0.1 and Camera@2 iOS 9 photo glitch #104

deadlyfingers opened this issue Jan 6, 2016 · 8 comments

Comments

@deadlyfingers
Copy link
Contributor

deadlyfingers commented Jan 6, 2016

Sometimes after taking a photo and tapping 'Use Photo' results in being stuck in a white screen.
Error 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.
Communications error: <OS_xpc_error: <error: 0x19bae4af0> { count = 1, contents =
    "XPCErrorDescription" => <string: 0x19bae4e50> { length = 22, contents = "Connection interrupted" }
}>

Using iOS9 on iPhone 6+. Worth noting this bug did not occur with Camera@1 plugin and UIWebView

@deadlyfingers
Copy link
Contributor Author

This is a very strange bug as it happens now and again while testing and am having trouble recreating reliably. I'm looking for certain conditions that might trigger it for example:

  • if debugging in Safari
  • if soft keyboard is up and camera function is activated

I've submitted the camera@2 iOS issue here:
https://issues.apache.org/jira/browse/CB-10179

@deadlyfingers
Copy link
Contributor Author

We might use HTML5 instead to capture images #105

@deadlyfingers
Copy link
Contributor Author

Fixed in Cordova camera@2.1.0 plugin update -
https://cordova.apache.org/news/2016/01/19/plugins-release.html

@jpike88
Copy link

jpike88 commented Apr 22, 2016

This was not fixed, that bug fix is regarding an actual app crash, not the WKWebView white screen issue.

@jpike88
Copy link

jpike88 commented Apr 22, 2016

Relevant:

Telerik-Verified-Plugins/WKWebView#41

@jaredgreener
Copy link

This is an error for us as well -- crashes everytime the camera opens with this error:

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.
2016-05-13 16:46:39.215 SalesRoutes[910:104605] Communications error: <OS_xpc_error: <error: 0x3747f654> { count = 1, contents =
"XPCErrorDescription" => <string: 0x3747f854> { length = 22, contents = "Connection interrupted" }
}>

Seems to only happen on my iPad mini and not iPad air

@marcorivm
Copy link

I think I'm having the same issue, did you managed to fix it?

@yaronyg
Copy link
Member

yaronyg commented Oct 3, 2016

Alas we haven't touched this code in many months. We are trying to get the underlying system to actually work first. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants