Table of contents 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 The system requirements of the developer's computer must conform to those of the Aternity iOS Mobile SDK. The Aternity iOS Mobile SDK requires a mobile device with at least iOS 10 or later. Integrate the Aternity iOS Mobile SDK into your app development environment. Include the Aternity.h header file (in Objective-C) into your source code file. To add it to a Swift project, use a bridging header (see Apple's documentation). Initialize the SDK either automatically (by adding Aternity.plist to your project) or manually using activateWithDictionary. 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”]; Parent topic Embed Monitoring in your iOS App with the Aternity iOS SDKRelated tasksIntegrate the Aternity iOS SDK into your App(Troubleshoot Mobile App Crashes with Breadcrumbs)Related referenceInitialize the Aternity iOS Mobile SDK Manually (activateWithDictionary)Set the Username with the Aternity iOS Mobile SDK (userNameStr)Set the Location's Site Name with the Aternity iOS Mobile SDK (setSite and setOffSite)Tag and Report an Event in an iOS App (tagApplicationWithName, reportTag)Set Contextual Data to Report from an iOS App (setContextValue)Add a Callback for App Crashes (setCrashCallback) SavePDF Selected topic Selected topic and subtopics All content Related Links
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 The system requirements of the developer's computer must conform to those of the Aternity iOS Mobile SDK. The Aternity iOS Mobile SDK requires a mobile device with at least iOS 10 or later. Integrate the Aternity iOS Mobile SDK into your app development environment. Include the Aternity.h header file (in Objective-C) into your source code file. To add it to a Swift project, use a bridging header (see Apple's documentation). Initialize the SDK either automatically (by adding Aternity.plist to your project) or manually using activateWithDictionary. 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”]; Parent topic Embed Monitoring in your iOS App with the Aternity iOS SDKRelated tasksIntegrate the Aternity iOS SDK into your App(Troubleshoot Mobile App Crashes with Breadcrumbs)Related referenceInitialize the Aternity iOS Mobile SDK Manually (activateWithDictionary)Set the Username with the Aternity iOS Mobile SDK (userNameStr)Set the Location's Site Name with the Aternity iOS Mobile SDK (setSite and setOffSite)Tag and Report an Event in an iOS App (tagApplicationWithName, reportTag)Set Contextual Data to Report from an iOS App (setContextValue)Add a Callback for App Crashes (setCrashCallback)
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 The system requirements of the developer's computer must conform to those of the Aternity iOS Mobile SDK. The Aternity iOS Mobile SDK requires a mobile device with at least iOS 10 or later. Integrate the Aternity iOS Mobile SDK into your app development environment. Include the Aternity.h header file (in Objective-C) into your source code file. To add it to a Swift project, use a bridging header (see Apple's documentation). Initialize the SDK either automatically (by adding Aternity.plist to your project) or manually using activateWithDictionary. 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”]; Parent topic Embed Monitoring in your iOS App with the Aternity iOS SDKRelated tasksIntegrate the Aternity iOS SDK into your App(Troubleshoot Mobile App Crashes with Breadcrumbs)Related referenceInitialize the Aternity iOS Mobile SDK Manually (activateWithDictionary)Set the Username with the Aternity iOS Mobile SDK (userNameStr)Set the Location's Site Name with the Aternity iOS Mobile SDK (setSite and setOffSite)Tag and Report an Event in an iOS App (tagApplicationWithName, reportTag)Set Contextual Data to Report from an iOS App (setContextValue)Add a Callback for App Crashes (setCrashCallback)