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(cordova): patch usages of webView superview #3177

Merged
merged 4 commits into from
Jul 6, 2020

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