Android Camera and Microphone Permissions for the Native Browser

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
JereMiami
Posts: 127
Joined: Mon Nov 03, 2014 12:17 am

Android Camera and Microphone Permissions for the Native Browser

Post by JereMiami » Thu Dec 22, 2022 1:55 am

This post is about the native android browser created using MobileControlCreate. It is not about the browser widget, which I assume cannot request permissions as the WebRTC flag is set to false. (https://forums.livecode.com/viewtopic.p ... ls#p220398

After giving a livecode standalone application permission for both CAMERA and RECORD AUDIO using androidRequestPermission, a website that needs access to the device's camera and microphone still ends with "NotAllowedError: Permission denied" (e.g., https://test.8x8.vc/)

But visiting the same website with the built-in chrome application web browser typically installed on all android devices, results in the permission requests being prompted and capable of being granted by the user.

My question are then:

1) is there any javascript that I can execute using mobileControlDo ito prompt the permission request for the native browser created within the standalone application (e.g. getUserMedia)?

2) is there a url for the native browser that i can navigate to (e.g., "chrome://settings") to have a user change the settings manually?

Or is this just not possible to access these peripherals in the native browser within the livecode standalone application for the time being?

Post Reply