Add Permissions for Android in AndroidManifest.xml in React Native

Permissions is designed to maintain the security between application and application user. Using the permissions we can give the privilege to android app to access any specific feature of that application. Android has its unique file structure for application development so Android gives us a file named as AndroidManifest.xml. The AndroidManifest.xml file contain all the important information about application like Application Icon details, Application name and all about activities. AndroidManifest.xml file is used to set normal permissions inside it. So in this tutorial we would going to learn about Add Permissions for Android in AndroidManifest.xml in React Native App. I would also provide the List of all available permissions for android below. Have Fun .


Contents in this project Add Permissions for Android in AndroidManifest.xml in React Native App :

1. To add any permission in AndroidManifest.xml file first we have to open it. The AndroidManifest.xml is located inside YourReactNativeAppProject -> android -> app -> src -> main -> AndroidManifest.xml.

AndroidManifest2. Open your file in Any text editor. I am opening this file in Notepad++ . Below is the code of my project’s AndroidManifest.xml.

3. Now you can see there are already 2 permissions added in this file named as INTERNET and SYSTEM_ALERT_WINDOW. These permissions is already come inbuilt with React Native project. To add any permission in this file simply press enter and add your permission below of these two permissions like i did in below code. I am only adding CAMERA permission.

List of All Normal and Dangerous Permissions in Android :