Telegram-Mini-Apps / telegram-apps

Made from scratch TypeScript packages, examples and documentation you will surely need to start developing on Telegram Mini Apps.

Home Page:https://docs.telegram-mini-apps.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access the microphone in the webapp only once

amirfaramarzi opened this issue · comments

commented

I have a web app and I need to access the user's microphone

I access the user's microphone by using navigator.mediaDevices.getUserMedia code, but unfortunately, because Telegram uses the Safari engine to run the webapp, every time the getUserMedia function is called, it asks the user to access the microphone again (for security reasons, Safari for each time Calling the getUserMedia function takes permission to access the microphone from the user.

Does anyone have a solution to get microphone access from the user just once?

This is not a place for discussions. You can use https://t.me/devs for it.