Android News App
  • Welcome
  • Android Studio
    • Getting Started
    • Import Project
    • Generate google-services.json
    • Push Notification
    • Package Name
    • Server Connection
    • Ad Network
    • Legacy GDPR
    • Funding Choices
    • App Configuration
    • Get YouTube API Key
    • Change App Logo
    • Change App Color
    • Text Assets
    • Image Assets
    • App Font
  • Admin Panel
    • Getting Started
    • Database Configuration
    • Related Video Tutorial
    • SMTP Config
    • Change Color
    • Change Text
  • Publish the App
    • Release Version
    • Generate Signed Bundle / APK
  • Migrate from Older Version
    • v4.2.1 to v4.3.0
    • v4.2.0 to v4.2.1
    • v4.0.0 to v4.2.0
    • v3.4.x to v4.0.0
  • Rating and Support
  • Changelog
  • FAQ
Powered by GitBook
On this page
  • Step 1
  • Step 2
  • Step 3

Was this helpful?

  1. Android Studio

Package Name

PreviousPush NotificationNextServer Connection

Last updated 3 years ago

Was this helpful?

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.

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

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.

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

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