Configure the iOS Agent to Report Session Replay
- To report Session Replay for your mobile application, you must configure the iOS Agent as follows:
- Objective C
#import <ADEumInstrumentation/ADEumInstrumentation.h> #import "AppDelegate.h" // ... -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ADEumAgentConfiguration *config = [[ADEumAgentConfiguration alloc] initWithAppKey:<#EUM_APP_KEY#>]; //The default SaaS EUM Server and Screenshot Service are in the Americas, // so you can omit the following settings if you are in the Americas. config.collectorURL = @"https://<your_region>-col.eum-appdynamics.com"; config.screenshotURL = @"https://<your_region>-image.eum-appdynamics.com"; config.sessionReplayURL = @"https://<your_region>-blob-service.eum-appdynamics.com"; [ADEumInstrumentation initWithConfiguration: config]; // other tasks return YES; }- Swift
#import <ADEumInstrumentation/ADEumInstrumentation.h> #import "AppDelegate.h" // ... func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { let config = ADEumAgentConfiguration(appKey: <#EUM_APP_KEY#>) config.collectorURL = "https://<your_region>.eum-appdynamics.com" config.screenshotURL = "https://<your_region>-image.eum-appdynamics.com" config.sessionReplayURL = "https://<your_region>-blob-service.eum-appdynamics.com" ADEumInstrumentation.initWith(config) // other tasks return true } // ...
Note: Do not add region for the Oregon (PDX) region. - To report Session Replay for your mobile application, you must configure the iOS Agent as follows:
- Objective C
#import <ADEumInstrumentation/ADEumInstrumentation.h> #import "AppDelegate.h" // ... -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ADEumAgentConfiguration *config = [[ADEumAgentConfiguration alloc] initWithAppKey:<#EUM_APP_KEY#>]; //The default SaaS EUM Server and Screenshot Service are in the Americas, // so you can omit the following settings if you are in the Americas. config.collectorURL = @"https://<your_region>-col.eum-appdynamics.com"; config.screenshotURL = @"https://<your_region>-image.eum-appdynamics.com"; config.sessionReplayURL = @"https://<your_region>-blob-service.eum-appdynamics.com"; [ADEumInstrumentation initWithConfiguration: config]; // other tasks return YES; }- Swift
#import <ADEumInstrumentation/ADEumInstrumentation.h> #import "AppDelegate.h" // ... func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { let config = ADEumAgentConfiguration(appKey: <#EUM_APP_KEY#>) config.collectorURL = "https://<your_region>.eum-appdynamics.com" config.screenshotURL = "https://<your_region>-image.eum-appdynamics.com" config.sessionReplayURL = "https://<your_region>-blob-service.eum-appdynamics.com" ADEumInstrumentation.initWith(config) // other tasks return true } // ...
Note: Do not add region for the Oregon (PDX) region.