Ionic Launch Event. September 28th 2021.
Android apps manage permissions, device features, and other settings by modifying
This file references values from other files in
res/values/, to make it easy to update them separately, including
This article covers the basic modifications you’ll need to make to your app. Read the Android Manifest docs to learn a whole lot more.
To modify the bundle/app id for your app, edit the
applicationId line in
To change the name of your app, change the value for
You probably also want to set the Activity name to match the App, for apps that plan to only have one activity (the main web activity running your app):
For a complete Deep Links guide, see here.
To enable deeplinking through Android App Links, follow the official Android guide on Adding Android App Links. Android Studio comes with a handy wizard for configuring App Links.
Your app can respond to custom URLs on launch, making it possible to handle deeplinks and app interactions.
To change the URL, search for and modify this line in
strings.xml. It’s recommended to set this to the bundle/app id.
In this example, the app will respond to URLs with the
To get any custom URL the app may have launched with, see the Deeplinks section above this one.
In Android, permissions your app will need are defined in
AndroidManifest.xml inside of the
<manifest> tag, generally at the bottom
of the file.
For example, here’s what adding Network permissions looks like:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.getcapacitor.myapp"> <activity> <!-- other stuff --> </activity> <!-- More stuff --> <!-- Your permissions --> <!-- Network API --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> </manifest>
Generally, the plugin you choose to use will ask you to set a permission. Add it in this file.
By default, the entire initial permissions requested for the latest version of Capacitor with the standard plugins can be found in the android-template’s AndroidManifest.xml