Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

How to check if access to microphone has been granted
Started by Divergent Monkey May 05 2019 12:25 PM

- - - - -
1 reply to this topic
microphone access
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]

Divergent Monkey

[GLOBAL: userInfoPane.html]
Divergent Monkey
  • Contributor

  • 354 posts
  • Corona SDK

Is there a way to check whether the user has allowed my app to use the microphone or not?


On Android, I handle the microphone request manually from my code (using native.showPopup("requestAppPermission", options)), which means that I can also check the result. On iOS, this is handled in build.settings and I do not know how to check what the user chose.

[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Corona Geek

  • 1,009 posts
  • Corona Staff

Unfortunately we don't have ability to check if permissions was granted. If the call (event) fails, it means that permission was denied.

On iOS permissions are requested first time application access mic/camera apis.