appName
The appName property overrides the name the SDK would otherwise take from the bundle: CFBundleDisplayName, falling back to CFBundleName. The SDK uses it as the host part of generated tracking URLs (for example http://YourAppName/...) and as the name on application install and application update events. Set it to nil to clear the override and use the bundle values again.
Whitespace in the stored name is removed before use (for example My App becomes MyApp in those URLs and events).
Syntax
PiwikTracker.sharedInstance()?.appName = "appName"[PiwikTracker sharedInstance].appName = @"appName";Parameters
- appName
string, optional. Custom name; passnilto useCFBundleDisplayName(orCFBundleNameif display name is unset).
Examples
To set a custom app name for a build flavor:
PiwikTracker.sharedInstance()?.appName = "MyApp Beta"[PiwikTracker sharedInstance].appName = @"MyApp Beta";Related methods
Updated 28 days ago