> For the complete documentation index, see [llms.txt](https://android-news-app.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://android-news-app.gitbook.io/docs/android-studio/package-name.md).

# Package Name

The package name of an Android app uniquely identifies your app on the device, in Google Play Store and in supported third-party Android stores.

### **Step 1**

1. Open **Gradle Scripts → build.gradle (Module: app)**
2. Change the application ID with your own id name
3. Standard naming procedure : **com.yourdomainname.yourappname**
4. Click **Sync Now**.
5. Change the id as unique as possible, because application id is very important used if you want to publish the application to the google play.

{% hint style="info" %}
Important : your **applicationId or package name** must same with your package name that you’ve create on firebase console when you generate google-services.json
{% endhint %}

<div align="left"><img src="https://38672343-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LfFS4YAcR-Hm_Ki5xQH%2F-M3PwisTd1piHk-SGRDO%2F-M3PyM7UYRwL4CS9Te1j%2Fimage.png?alt=media&amp;token=128f23a0-4ddd-4426-81a4-1b0bb7bfb8ce" alt=""></div>

### **Step 2**

1. Click once on your package and then click setting icon on Android Studio.
2. Close / Unselect **Compact Empty Middle Packages**
3. Right click your package and rename it.

<div align="left"><img src="https://38672343-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LfFS4YAcR-Hm_Ki5xQH%2F-M3PwisTd1piHk-SGRDO%2F-M3PyRquFdKPURMpT1RA%2Fimage.png?alt=media&amp;token=edead322-84af-4364-b5df-0a9b61563bd4" alt=""></div>

### **Step 3**

If you use OneSignal for sending push notification, you must manually change the NotificationServiceExtension value in the **AndroidManifest.xml** according to your package name

```markup
<meta-data
    android:name="com.onesignal.NotificationServiceExtension"
    android:value="<your_package_name>.notification.NotificationServiceExtension" />
```

<div align="left"><img src="https://38672343-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LfFS4YAcR-Hm_Ki5xQH%2F-MffvnZjGnBAev6Jei-Z%2F-Mffx0XPudcP4A6JSNMm%2Fimage.png?alt=media&amp;token=75153534-d410-418d-96a6-dfdbce4e5cc6" alt=""></div>
