Skip to main content
Version: 1.0.0

Issue callback listener

Single function with callback to get notified when an issue is detected by the framework.

You can listen for and access every issue in realtime using the Ax.listenForIssue() API.

You need to add the listener in your AppDelegate class. Register only a single global listener to get callbacks for all issues detected by the framework.

AppDelegate


[Ax listenForIssues:@selector(issueFound:) atTarget:self];
}

(void) issueFound:(Issue *) issue {

}

The callback will have an Issue object that contains all the issue properties that are being synced to the server, making the whole process transparent.

The callback will be executed in a background thread, so make sure to use UI thread inside the callback function to implement any UI related actions. This callback is triggered right after an issue occurrence.

Issue fields

type

Mandatory field: Value for this field will be available in all types of issues. Please find the type code on corresponding issue page.

Data type: NSString.

This field gives the type of issue that is raised at the time of the call back.

Complete Issue Type Reference:

TypeCategoryDescriptionDocumentation
1CustomReport Custom IssuesView Details
2FunctionFunction returns NilView Details
3FunctionFunction returns value outside rangeView Details
4FunctionFunction returns unexpected boolean valueView Details
5PerformanceDelayed function executionView Details
6PerformanceScreen loading delaysView Details
7FeatureTrack feature failuresView Details
8Not Applicable for iOS
9MemoryLow memory warningView Details
10Not Applicable for iOS
11CrashCrash ReportingView Details
12ExceptionReport ExceptionsView Details
13NetworkError in Status CodeView Details
14NetworkException during network callView Details
15NetworkDelayed network callView Details
16Not Applicable for iOS
17MemoryAbnormal Memory UsageView Details
18NetworkDuplicate network callView Details
19Not Applicable for iOS
20MemorySpike in Memory UsageView Details
21MemoryMemory leaksView Details
22ErrorTrack NSError issuesView Details
23Not Applicable for iOS
24PerformanceSlow framesView Details
25Not Applicable for iOS
26UITrack App HangsView Details
27Not Applicable for iOS
28Not Applicable for iOS
29StartupCold App Startup delaysView Details
30Not Applicable for iOS
31Not Applicable for iOS

occurrenceTime

Mandatory field

Data type: int64_t (UNIX Epoch).

Provides the occurrence/ incident time of the issue in milliseconds.

deviceState

Mandatory field

Data type: NSString (JSONObject as NSString).

Provides the multiple data points of device state. Data points like batteryLevel, lastRebootTime, timezoneOffset etc will be available. The data will be passed as a JSON object in NSString format.

severity

Mandatory field

Data type: int64_t.

Provides the severity flag for each type of issue. Incase of custom reported issues, the severity flag can be as set by the developer.

issueShortDescription

Mandatory field

Data type: NSString.

A textual short description of the issue will be passed here. In case of custom reported issues, the second parameter passed will be passed here.

activityTrail

Optional field
Click here to set custom activity trail markers.

Data type: NSArray.

Provides the chronologically ordered list of events collected by the framework along with custom activity markers set by the developer. The data will be passed as a JSON Array in NSArray format.

eventStartTime

Optional field

Data type: int64_t (UNIX Epoch).

Provides the start time of the issue in milliseconds. In case of API call type issues it will provide the start time of API call.

eventEndTime

Optional field

Data type: int64_t (UNIX Epoch).

Provides the end time of the issue in milliseconds. In case of API call type issues it will provide the end time of API call.

url

Optional field

Data type: NSString.

Provides the URL to which an API call was made when an API related issue occurred.

method

Optional field

Data type: NSString.

Provides the Method when an API related issue occurred.

statusCode

Optional field

Data type: int64_t.

Provides the status code when an API related issue occurred.

networkParameters

Optional field

Data type: NSDictionary.

Provides the network parameters like request-response headers, request-response body, status code etc for API related issues, if available.

stacktrace

Optional field

Data type: NSString.

Provides the stack-trace for issues like crashes, AppHangs, framerate etc.

exceptionType

Optional field

Data type: NSString.

In case of crashes or reporting caught exceptions, the type of exception will be made available here.

exceptionLineNumber

Optional field

Data type: int64_t.

In case of crashes or reporting caught exceptions, the line number in the code base that triggered the issue, if available will be passed.

nextFunctionSignature

Optional field

Data type: NSString.

In case of feature tracking the next function signature, if available, that was passed in Observe class will be made available here.

functionParameters

Optional field

Data type: NSArray.

Provides the parameters passed to the function call in case of function tracking and feature tracking issues.

returnValue

Optional field

Data type: NSString.

Provides the return value of a function in case of tracked function and feature tracking issues.

returnValueType

Optional field

Data type: NSString.

Provides the return type of a function in case of tracked function and feature tracking issues.

returnValueSize

Optional field

Data type: int64_t.

Provides the return value size in int64_t of a tracked function in case of function and feature tracking issues.

expectedExecutionTime

Optional field

Data type: int64_t.

In case of feature tracking issues, the time set by the developer in Observe class will be provided here.

customIdentifier

Optional field

Data type: NSString.

Provides the latest custom identifier set by the developer using the setCustomId API for the device.

location

Optional field

Data type: NSString.

Provides the geographic or logical location where the issue occurred, useful for distributed applications or location-based debugging.

functionSignature

Optional field

Data type: NSString.

Provides the signature of the current function being tracked in function and feature tracking.

timerTime

Optional field

Data type: int64_t.

Timer-related timestamp for issues involving time-based operations or delays.

timered

Optional field

Data type: BOOL.

Flag indicating whether the issue is related to timer-based operations or time-sensitive functionality.