What is meant by bundle ID in android, What is its usage, And can two android apps have same bundle ID? if YES then why? and if NO then why
You can find an app's package name in the URL of your app's Google Play Store listing. For example, the URL of an app page is play.google.com/store/apps/details? id=com.
A bundle ID or bundle identifier uniquely identifies an application in Apple's ecosystem. This means that no two applications can have the same bundle identifier. To avoid conflicts, Apple encourages developers to use reverse domain name notation for choosing an application's bundle identifier.
A bundle ID otherwise known as a package in Android is the unique identifier for all Android apps. It needs to be unique as when you upload it to Google Play it identifies and publishes your app using the package name as the unique app identification.
Really it is the only thing which is necessary to identify your app, and generally it has 3 parts:
com.example.testapp
Where example is generally the company/publishers name, and testapp is the appname.
You will not be able to upload an APK to the store which has the same package as another app already in the store.
Should you ever need to change the package name in Eclipse, do the following:
Right click project > Android Tools > Rename Application Package...
BundleID is a Unique Identifier for Identifying your app on Google Play Store. You can Note that for each apps on Google Play something like this:
https://play.google.com/store/apps/details?id = com.yourdomain.appname
You cannot assign the same BundleId for more than one App. This is because the Google Play uses your BundleID as Unique Identifier for your app.
So, you can configure your BundleID in Android Studio by editing your applicationId property in app level gradle as shown below:
android {
compileSdkVersion 27
defaultConfig {
//Edit the applicationId for changing your BundeID.
applicationId "com.yourdomainname.yourappname"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With