Houzi Docs logo Houzi Docs




Mandatory App bundle identifiers are unique identifiers for your apps, they’re globally unique. Most of the time, you can reverse your website domain to create an identifier for your app. For example: com.domain.app_name

This guide consists of following sections:

Once you’ve decided the unique identifiers, you need to replace existing with your own:

Android:

You’ve to change package info in two places. build.gradle and AndroidManifest.xml

Change applicationId in build.gradle:

To change the package in build.gradle, follow these steps:

Change package in AndroidManifest.xml:

To change the package in AndroidManifest.xml, follow these steps:

android > app > src > main > kotlin > your > package > name > all_kotlin_files

Suggestion We suggest renaming the folders manually using Finder or Windows Explorer. Then change the package declaration in kotlin files as well, for example in all kotlin files change this line:

package com.houzi.app

To your own package like this:

package your.package.name

OneSignal Push Configurations for Android

If you want to support push notification, you have to do following steps:

Change App Bundle Identifier

For iOS, open Xcode, and click on the project name (Runner) on the top left side and click on General tab, you should see the Bundle Identifier option, change its value with your own.

ios-app-bundle-identifier

open: Project_HOME > ios > Runner > General > Bundle Identifier

OneSignal Push Configurations for iOS

If you want to enable OneSignal Push Notification, then you also need to update the App Group bundle identifier in two places.

  1. Target Runner:
    ios-app-groups-id-1.jpg
     open: Project_HOME > ios > Runner > Signing & Capabilities > App Groups
    

    Set the App Groups in signing to be group.YOUR_BUNDLE_IDENTIFIER.onesignal where YOUR_BUNDLE_IDENTIFIER is the same as your Main Application “Bundle Identifier”.

  2. Target OneSignalNotificationServiceExtension
    ios-app-groups-id-2.jpg
     open: Project_HOME > ios > OneSignalNotificationServiceExtension > Signing & Capabilities > App Groups
    

    Set the App Groups in signing to be group.YOUR_BUNDLE_IDENTIFIER.onesignal where YOUR_BUNDLE_IDENTIFIER is the same as your Main Application “Bundle Identifier”. Make sure it is the same as you have in your Main Runner Target App Group.

Previous: App display name Next: Changing Theme Colors