I have a Xamarin.Forms app where I am opening a WebView and setting the Source URL. That site allows users to take pictures of assets etc... In Chrome (on the Android device), this works fine. In iOS I'm using a custom renderer to force the use of WKWebView, this works fine. But this is not working on Android using WebView. I'm using the out of the box WebView with no custom renderers. The XF app already uses the camera elsewhere so I know it's not a permissions issue.
Looking at the WebView code from Xamarin, the default WebView renderer enables Javascript and DomStorage and the WebChromeClient is set.
How can I allow camera use from a website within a WebView?
Related
I have use wkwebview for load camera webpage. The webpage is working in safari and android but does not work camera in wkwebview.
I have added permission in plist file. verified on app setting. camera and microphone are enable so till camera does not start on webpage.
Thanks
I am working on a project that required SVG Animations. The SVGs work fine on my Android app, but it does not animate on iOS. I Googled and figured out that offset-path is not supported by Safari and Chrome on iOS. What should I replace the tag with, so it animates like it does on Android?
Here's the link https://caniuse.com/#search=offset-path
We have a mobile web app based on Angular 5 need to open camera to capture a qr code.
In Safari is fine, however, we cannot do it with Chrome and Firefox.
Thanks.
I'm working with the Licode webrtc system. In the web browser works very well and now I want to use it on mobile devices with the help of a webview. I was researching and saw that the webview I want to use (crosswalk) is not compatible with webrtc systems in ios but it is in Android as I could verify.
I Installed the camera plugin
and also I installed plugins to give camera permissions
But nevertheless I still can not get the webrtc system's camera to show up in my webview.
My question is:
Is there any way to operate the camera on the crosswalk webview in ios?
If it is not like this:
Do you know any way to use the Licode webrtc system with a webview?
Unfortunately, you can't currently use getUserMedia() in a WebView on iOS, hence capturing camera from there won't work.
Background: I'm using the custom pin share URL as you can see in the example below.
Problem: This share URL works on every single operating system and browser except Safari on iOS. It works in all other browsers on iOS, and it works in Safari on all other operating systems.
Example Link: https://pinterest.com/pin/create/button/?url=http://redefiningmom.com/the-real-reason-i-left-corporate-america/&media=http%3A%2F%2Fredefiningmom.com%2Fwp-content%2Fuploads%2F2016%2F01%2Freal-reason-i-left-corporate-america-pinterest.jpg&description=After+ten+years%2C+I+quit+my+job+in+Corporate+America.+Find+out+the+real+reason+I+left+Corporate+America+and+how+you+can+too.
Desired/Usual Behavior: This link would open a share dialogue leading to the creation of a rich pin with a large image, a description, and a link back to the webpage.
Undesired Behavior: Only on Safari on iOS this opens a share dialogue leading to the creation of a non-rich pin with a large image, a description and a link to the image, not the web page.
How do I fix this?
Using an iPhone 5S with iOS 9.2.1 (the latest), the pages look exactly the same on Chrome and Safari: