opentok / opentok-react-native

OpenTok React Native - a library for OpenTok iOS and Android SDKs
https://tokbox.com/
MIT License
210 stars 155 forks source link

Fix android app crash due to permission missing #687

Closed vona-ben closed 11 months ago

vona-ben commented 11 months ago

https://jira.vonage.com/browse/VIDECO-9216

Fix crashes while trying to create a publisher while permission for camera/audio is denied due to the fact we do not consider never_ask_again as an equivalent of denied.

"never_ask_again" is treated as equivalent to "denied" because it signifies that the user has actively chosen not to grant the permission and has selected the option to never be asked again. This is often used as a more restrictive state than simply denied, as it implies that the user does not want the app to ask for permission in the future, even if the app requests it again.

Note: This does not allow publishing without both audio/camera permission as was expected. We can add this as a "feature" in another PR.

CC @jeffswartz