Application: bundleIdentifier property
The bundleIdentifier property is the app's bundle ID: the app's unique identifier in the system, written like a reversed domain name.
Value
A string, such as 'com.example.shop'.
- Read-only. Assigning to it throws
TypeError. - The value comes from
bundleIdin the project'snacre.config.json. Equal toinfo.CFBundleIdentifier. - It doesn't change while the app runs, so there is no change event.
Examples
js
console.log(application.bundleIdentifier);Result: an app whose bundle ID is com.example.shop prints com.example.shop.
Corresponding iOS API
NSBundle.mainBundle.bundleIdentifier.