By following these steps, you will edit the AndroidManifest.xml file and add the required configuration to publish your app:
-
Open the AndroidManifest.xml file, in the android/app/src/main directory.
-
Set the android:label value in the application node to the public name of your app, for example, BMI Calculator.
-
If your app needs an HTTP connection, for example, to read data from a web service, make sure you add the internet permission at the top of the manifest node with the instruction that follows:
<uses-permission android:name="android.permission.INTERNET"/>
- In the package property of your manifest node, set the unique identifier you chose in the app setup at the beginning of this chapter, such as the following:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.yourdomain.bmi_calculator">
-
Copy the package value you chose, then open the AndroidManifest.xml file in the android...