appidea / react-native-hce

Emulate smart cards inside React-Native application.
MIT License
67 stars 26 forks source link

NFC Permissions #28

Closed 0xcD3v closed 10 months ago

0xcD3v commented 1 year ago

How can we force android to ask user permissions to acess NFC module?

Am emulating a tag, and i only start the emulation process when user clicks on a button but if the user doesn't have the nfc turned on, the aplication doesn't ask for permissions. I already looked up react native documentation but i didn't found a permission for NFC.

appidea commented 10 months ago

Just googled about Your problem and found a SO topic which could be some kind of clue: https://stackoverflow.com/questions/7618657/how-to-check-whether-nfc-is-enabled-or-not-in-android