Can't open camera in Android Facebook app inbox browser by using html input tag
Clash Royale CLAN TAG#URR8PPP
Can't open camera in Android Facebook app inbox browser by using html input tag
I try to write a website to take a picture and upload image.
In HTML5 I use input tag such as:
<input type="file" accept="image/*;capture=camera">
<input type="file" accept="image/*;capture=camera">
to open camera and it really work in most of browsers,
but it can't open in Android Facebook inbox browser, it would appear open file replace open camera.
Does anyone has faced this problem?
1 Answer
1
I noticed this behavior too. It's possible that the Facebook app restricts this permission. While I haven't found a solution yet, you can detect the presence of Facebook's in-app browser and display a notification, telling the user to load your website in a normal browser for best results.
Update 8/7/18: If the Facebook for Android app does not have certain Android permissions enabled (Camera, Location, etc), those same features will not be available in Facebook's in-app browser.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.