Track errors on iOS
Last update: November 11, 2022
- Topics:
- Media Analytics
CREATED FOR:
- User
- Admin
- Developer
The following instructions provide guidance for implementation across all 2.x SDKs.
If you are implementing a 1.x version of the SDK, you can download the 1.x Developers Guides here: Download SDKs.
Implement error tracking
-
Track media player errors:
- (void)onPlayerError:(NSNotification *)notification { [_mediaHeartbeat trackError:@"mediaoErrorId"]; }
Tracking media player errors will not stop the media tracking session. If the media player error prevents the playback from continuing, make sure that the media tracking session is closed by calling
trackSessionEnd
after calling trackError
.recommendation-more-help
c8eee520-cef5-4f8c-a38a-d4952cfae4eb