close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

Debugging — iOS

This topic includes the following sections:

Troubleshooting sessions with Inspector

Inspector provides post-mortem diagnostic information about OpenTok sessions. Enter a session ID or a reported issue ID (see the next section) into Inspector to view raw information at stream and user levels to help pinpoint errors, failures, and quality issues.

For details, see the Inspector documentation.

Reporting an issue

You can call the [OTSession reportIssue:] method to programmatically report when your app experiences an issue. This method provides you with an issue ID, which you can use with the Inspector or when discussing the issue with the Vonage API support team.

OTError* issueId = nil;
[mySession reportIssue:&issueId];
if (issueId) {
  NSLog(@"Report issue ID: %@", issueId);

The issueId parameter is a pointer to a string that will be set the unique identifier for the reported issue. If the call to the method fails (for example, because of no network connection), this value is set to nil.

You may want to send the issue ID to a server that can store it in a database for later reference.