How to check crash detection in zendrive iOS

I integrate zendrive in my iOS app for crash detection. I went through their beginning and integrated the SDK into my crash detection application. I also visited the accident detection section and follow the instructions.

My question is: After integrating this SDK, how would I test this feature? I mean, how to simulate a crash on my code and test the SDK.

Any help?

+4
source share
1 answer

It seems that in their new version of the SDK (3.3.3) they have added a new method to simulate a false accident.

So according to their document

SDK ZendriveTest. . RaiseMockAccident .

#import <Zendrive/ZendriveTest.h>

...
// Ensure SDK is setup in ZendriveAccidentDetectionModeEnabled using 
// [Zendrive setupWithConfiguration:delegate:completionHandler:]

// Raise a mock accident. You can also test your implementations for different confidence levels.


 [ZendriveTest raiseMockAccident:ZendriveAccidentConfidenceHigh];

// On calling above method you will receive processAccidentDetected: callback on your delegate after 5 seconds.
// If you do not receive a callback, look at the logs to figure out possible integration issues.
+2

All Articles