简体   繁体   中英

permission to record audio on iOS

I am writing an app that records an audio file from the user. I noticed that when other apps that do something similar are installed, a window is displayed, warning the user that the app wants to access the microphone, and the user has to explicit give permission to the app to do so.

Does Qt have any API that tells iOS about the intention of the app to access certain devices, which would cause that warning window to be displayed?

Thanks!

You don't have to handle it manually . iOS will automatically ask for permission if the user didn't accept it before.

The very first time your app will need microphone, an alert will be displayed. If the user allows it, he will never see the alert again. If he refuses, he will have to turn it ON manually in iOS settings . Nevertheless, there's maybe a way to handle a previous refusing in-app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM