Table of contents Set the Username with the Aternity iOS Mobile SDK (userNameStr) You can set a username for a mobile app in Aternity Mobile SDK to be consistent with desktops and laptops, so you can track this user's experience across all devices and platforms. The Aternity class provides a property called userNameStr, which you can set at initialization or manually at any time. Example of usernames for mobile devices displayed in the dashboards By default, an empty username is displayed as Other or Unknown in the dashboards. The Aternity class provides the sharedManager method, which returns a singleton object. You should call the class's methods using this singleton object, to avoid manually creating and maintaining the Aternity object. Before You Begin Before you begin, ensure you have already done the following: The system requirements of the developer's computer must conform to those of the Aternity iOS Mobile SDK. 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). The Aternity iOS Mobile SDK requires a mobile device with at least iOS 10 or later. Initialize the SDK either automatically (by adding Aternity.plist to your project) or manually using activateWithDictionary. Property Definition The userNameStr is defined as a property in the Aternity class: @property(copy) NSString *userNameStr; Property Description userNameStr Set this to be the username you want to appear in the dashboards, defined as a string. If you set the username before performing initialization, it passes the username upon initialization. Example In Objective-C [Aternity sharedManager].userNameStr = @"Irene_Wilkins"; In Swift: Aternity.sharedManager().userNameStr = "Irene_Wilkins" 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 Location's Site Name with the Aternity iOS Mobile SDK (setSite and setOffSite)Set the Device Name with the Aternity iOS Mobile SDK (setDeviceName)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 Username with the Aternity iOS Mobile SDK (userNameStr) You can set a username for a mobile app in Aternity Mobile SDK to be consistent with desktops and laptops, so you can track this user's experience across all devices and platforms. The Aternity class provides a property called userNameStr, which you can set at initialization or manually at any time. Example of usernames for mobile devices displayed in the dashboards By default, an empty username is displayed as Other or Unknown in the dashboards. The Aternity class provides the sharedManager method, which returns a singleton object. You should call the class's methods using this singleton object, to avoid manually creating and maintaining the Aternity object. Before You Begin Before you begin, ensure you have already done the following: The system requirements of the developer's computer must conform to those of the Aternity iOS Mobile SDK. 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). The Aternity iOS Mobile SDK requires a mobile device with at least iOS 10 or later. Initialize the SDK either automatically (by adding Aternity.plist to your project) or manually using activateWithDictionary. Property Definition The userNameStr is defined as a property in the Aternity class: @property(copy) NSString *userNameStr; Property Description userNameStr Set this to be the username you want to appear in the dashboards, defined as a string. If you set the username before performing initialization, it passes the username upon initialization. Example In Objective-C [Aternity sharedManager].userNameStr = @"Irene_Wilkins"; In Swift: Aternity.sharedManager().userNameStr = "Irene_Wilkins" 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 Location's Site Name with the Aternity iOS Mobile SDK (setSite and setOffSite)Set the Device Name with the Aternity iOS Mobile SDK (setDeviceName)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 Username with the Aternity iOS Mobile SDK (userNameStr) You can set a username for a mobile app in Aternity Mobile SDK to be consistent with desktops and laptops, so you can track this user's experience across all devices and platforms. The Aternity class provides a property called userNameStr, which you can set at initialization or manually at any time. Example of usernames for mobile devices displayed in the dashboards By default, an empty username is displayed as Other or Unknown in the dashboards. The Aternity class provides the sharedManager method, which returns a singleton object. You should call the class's methods using this singleton object, to avoid manually creating and maintaining the Aternity object. Before You Begin Before you begin, ensure you have already done the following: The system requirements of the developer's computer must conform to those of the Aternity iOS Mobile SDK. 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). The Aternity iOS Mobile SDK requires a mobile device with at least iOS 10 or later. Initialize the SDK either automatically (by adding Aternity.plist to your project) or manually using activateWithDictionary. Property Definition The userNameStr is defined as a property in the Aternity class: @property(copy) NSString *userNameStr; Property Description userNameStr Set this to be the username you want to appear in the dashboards, defined as a string. If you set the username before performing initialization, it passes the username upon initialization. Example In Objective-C [Aternity sharedManager].userNameStr = @"Irene_Wilkins"; In Swift: Aternity.sharedManager().userNameStr = "Irene_Wilkins" 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 Location's Site Name with the Aternity iOS Mobile SDK (setSite and setOffSite)Set the Device Name with the Aternity iOS Mobile SDK (setDeviceName)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)