Skip to content

Conversation

@jcesarmobile
Copy link
Member

@jcesarmobile jcesarmobile commented Jun 30, 2020

Some plugins use [self.webView superview] (cordova-plugin-camera), or self.webView.superview (cordova-plugin-camera-preview), and probably others.

In Capacitor the webView is the top most view, so there is no superview and makes the plugins to not work or crash.
By replacing those usages to self.viewController.view, cordova-plugin-camera is able to present popovers, and cordova-plugin-camera-preview is able to show the camera preview (only over the html, not behind it as in cordova, but it's better than crashing).

closes #3176

related cordova-plugin-camera-preview issue that was closed as incompatible: #1732

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: cordova plugin camera not showing gallery on iPad capacitor

2 participants