Apteligent Integration

Braze is dedicated to creating partner integrations that provide data-driven approaches to improving your application’s user experience. The Apteligent and Braze partnership combines Braze’s multichannel engagement automation with Apteligent’s detailed crash reporting, allowing you to log critical data into your existing Braze solution. Together, Apteligent and Braze can help you segment, understand, and engage with your users who have experienced application crashes.

This integration is currently only supported on iOS.

iOS Integration

To integrate Apteligent with Braze on iOS, do the following:

Step 1

Register an observer. Ensure that this is done before you initialize Apteligent.

1
2
3
4
[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(crashDidOccur:)
                                             name:@"CRCrashNotification"
                                           object:nil];

Step 2

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:

1
2
3
4
5
6
7
- (void)crashDidOccur:(NSNotification*)notification {
  NSDictionary *crashInfo = notification.userInfo;
  [[Appboy sharedInstance] logCustomEvent:@"ApteligentCrashEvent" withProperties:crashInfo];
  [[Appboy sharedInstance].user setCustomAttributeWithKey:@"lastCrashName" andStringValue:crashInfo[@"crashName"]];
  [[Appboy sharedInstance].user setCustomAttributeWithKey:@"lastCrashReason" andStringValue:crashInfo[@"crashReason"]];
  [[Appboy sharedInstance].user setCustomAttributeWithKey:@"lastCrashDate" andDateValue:crashInfo[@"crashDate"]];
}

That’s it! Now you’ll be able to harness the power of Braze’s segmentation, analytics, and engagement using the crash information that Apteligent provides.

Implementation Example

See our sample implementation in the AppDelegate.m file of the Stopwatch sample application.

WAS THIS PAGE HELPFUL?
New Stuff!