Set the Device Name with the Aternity iOS Mobile SDK (setDeviceName)

You can set a device name for a mobile app using the Aternity Mobile SDK, to display custom device names in the dashboards. In iOS, the Aternity class provides a static method called setDeviceName for setting the device name.

For example, you can use setDeviceName to implement your company's device naming policy on employees' personal devices.

In addition to using this method, you can also set this property when the iOS app initializes with activateWithDictionary and setting the property ATERNITY_CONFIG_DEVICE_NAME.

Example of device names for mobile devices displayed in the dashboard

Before You Begin

Method Definition

In iOS, the Aternity class provides a static method called setDeviceName for setting the device name.

+(void)setDeviceName:(NSString *)deviceName;
Parameter Description

deviceName

Set this to be the device name you want to appear in the dashboards, defined as a string.

Example

//Set the device name to a string. No singleton object for this static method.

[Aternity setDeviceName:@“Dale_Tello_Tablet”];