Best practice Android package name and IOS bundleID [closed]
Asked Answered
U

2

5

Hi I am developing an Android app and one IOS app.

My question is regarding the Android package name and the IOS bundleID.

Is it best practice to use the same value on both platforms like "com.mysite.myapp"? or should I use different values for different platforms like:

  • "com.mysite.myapp.android" on the android version
  • "com.mysite.myapp.ios" on the IOS version
Unsound answered 20/7, 2018 at 17:33 Comment(0)
H
4

I usually use names like com.mysite.myapp.android and com.mysite.myapp.ios. Additionally if app has different modules I prefer to give them some meaningful suffixes, for example com.mysite.myapp.android.app for app itself and com.mysite.myapp.android.sal for Service Access Layer (code that works with API).

But there are no strict requirements. You can name packages and bundles in any manner.

Hugmetight answered 20/7, 2018 at 17:41 Comment(0)
F
5

You have no boundation on package name, except that package name should not be already on play-store or ios-app-store.

So you can make them same. or just use android or ios in package name for your convenience.

Some additional info

In Android play-store-id (defined in build.gradle) and package-name (defined in manifest.xml) can be different. So don't be confused in that.

You can put any Architecture or package structure for your classes and can set different package name for play-store.

Fussbudget answered 20/7, 2018 at 17:39 Comment(2)
Can error occur when using push with firebase or with other push systems?Unsound
Not at all, all systems have different mechanism written for android and ios.Fussbudget
H
4

I usually use names like com.mysite.myapp.android and com.mysite.myapp.ios. Additionally if app has different modules I prefer to give them some meaningful suffixes, for example com.mysite.myapp.android.app for app itself and com.mysite.myapp.android.sal for Service Access Layer (code that works with API).

But there are no strict requirements. You can name packages and bundles in any manner.

Hugmetight answered 20/7, 2018 at 17:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.