Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlayerSettings.GetApplicationIdentifier

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static method GetApplicationIdentifier(targetGroup: BuildTargetGroup): string;
public static string GetApplicationIdentifier(BuildTargetGroup targetGroup);

Description

Get the application identifier for the specified platform.

The location of the application identifier in the build output depends on the platform build target. On iOS, tvOS and Mac OS X platforms, the identifier is written to the 'CFBundleIdentifier' field in the info.plist file. This file is created and placed in the build output folder when the Unity project is built. Additionally, on Mac OS X, the bundle identifier can be found in the info.plist file in the final .app file, after finishing the Xcode build process. On Android the identifier is saved to the 'package' field in the AndroidManifest.xml file. Tizen works just like Android, except the manifest is tizen-manifest.xml instead of AndroidManifest.xml.

Did you find this page useful? Please give it a rating: