> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Apteligent

# Introduction

[Apteligent](https://www.vmware.com/products/workspace-one/intelligence-consumer-apps.html) is a mobile application performance platform providing tools and insights for developers and product managers.

# MoEngage × Apteligent

The MoEngage and Apteligent integration provides detailed Android and iOS crash reporting, allowing you to log critical data into your existing MoEngage solution as well as segment, understand, and engage with users who have experienced application crashes.

# Integration

<Info>
  **Prerequisites**

  * Ensure you have access to your TestDrive account.
</Info>

# Step 1: Register an observer

First, you must register an observer. Ensure that this is done before you initialize Apteligent.

```objectivec wrap theme={null}
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(crashDidOccur:) name:@"CRCrashNotification" object:nil];
```

### Step 2: Log custom crash analytics

The Apteligent SDK will fire a notification when the user loads the application after a crash occurs. The notification will contain the crash name, reason, and date of occurrence.

Upon receiving the notification, log a custom crash event and update user attributes with Apteligent’s crash reporting analytics:

```objectivec wrap theme={null}
(void)crashDidOccur:(NSNotification*)notification {
  NSDictionary *crashInfo = notification.userInfo;  
  
  MoEngageSDKAnalytics.sharedInstance.setUserAttribute(crashInfo[@"crashName"], withAttributeName: "lastCrashName")  
  MoEngageSDKAnalytics.sharedInstance.setUserAttribute(crashInfo[@"crashReason"], withAttributeName: "lastCrashReason")  
  MoEngageSDKAnalytics.sharedInstance.setUserAttribute(crashInfo[@"crashDate"], withAttributeName: "lastCrashDate")
}
```

Once completed, you’ll be able to harness the power of MoEngage's segmentation and analytics using the crash information found in the Apteligent platform.
