Bluetooth permission
Closed this issue · 2 comments
albo1337 commented
Hello team,
I know that it's not possible to programmatically turn on bluetooth. But how can I display a popup window that the user can open the bluetooth settings, if the user hasn't turned bluetooth on.
Best regards
frostney commented
Hi @albo1337, I ran across the same issue when I was using this module in production. For that reason, I made a separate module called react-native-bluetooth-state
that checks if Bluetooth is active.
Alternatively you could make a native extension for that yourself, something similar to http://stackoverflow.com/a/23838229/1544387. (react-native-bluetooth-state
is using that under the hood.)
Feel free to re-open the issue if that doesn't answer your question.