How to get bundle id in flutter

In iOS portion of a Flutter project Product Bundle Identifier is in project.pbxproj file in path:

[your-flutter-project-dir]\ios\Runner.xcodeproj\project.pbxproj

and that is specified as following:

PRODUCT_BUNDLE_IDENTIFIER = com.app.flutter.example;

Note in that this value is same as Android Package Name in Flutter projects.


To find the project name manually, you can look in AndroidManifest.xml or in Info.plist.

Android

In Android the package name is in the AndroidManifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    ...
    package="com.example.appname">

iOS

In iOS the package name is the bundle identifier in Info.plist:

<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>

which is found in Runner.xcodeproj/project.pbxproj:

PRODUCT_BUNDLE_IDENTIFIER = com.example.appname;

See also

  • How to change package name in flutter?