CustomWebView : An extended form of Web Viewer

I need help, I want it yo have audio perms without asking, and it doesnt work, even if i try with asking, doesnt work, can someone please help?

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

I mean, I do not have any code to audio permision work, how to make it so record audio permision works?

Show your blocks.

I currently do not have any, only setup the webview and loading in an url. what do i need to add to make audio recording perms work??

Try searching for customwebview permission in community.

I did, this is my current code, why isn't it working?

@S4IL

Did you read this

https://sunnythedeveloper.in/2023/06/27/how-to-use-camera-and-mic-in-customwebview/

Download that aia and review the required blocks ?

When I click to download the AIA:

You are correct, hang on...

Here is a pdf of the page that shows the blocks required

How to use Camera and Mic in CustomWebView_ - SunnyTheDeveloper.pdf (366.3 KB)


I followed the tutorial exacly and it just says ahows alert saying only [​], and doesn't have mic perms

Hello @vknow360,
I need help with this. This code always crashes on my Android phone when it's compiled, but works in the MIT App Inventor tester.



Thanks for the help in advance!

It is quite self explanatory, no permission is asked from webpage.

Multiple things can go wrong.

  1. FileAccess property of CustomWebView is not set to true. (Although this should not crash app)
  2. TaifunTextbox.EnterPressed getting invoked prior to webview creation.
  3. Something wrong with FilePicker.

Take it slow, and debug properly.

Hey, thanks for replying. How would I enable FileAccess? Please and thank you. :slight_smile:

This doesn't make any sense, the webpage is asking for mic perms on browser

image
If i remove the code and just onpermissionrequest print permissionsList it says the audio permission and with this code t says empty but doesnt grat the permision

And also, if a very laggy website is displayed on an arrangement and the arrangement is hidden, would this lag the app?

Maybe an error with Companion vs finished apk? idk but there are some weird differences in the APK and companion that cause some things to break

On my Chromebook, no but if the WebView visibility is set to false then it still does lag