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
- Objective C
- Swift
[Ax listenForIssues:@selector(issueFound:) atTarget:self];
}
(void) issueFound:(Issue *) issue {
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Ax.initialize(application)
Ax.listenForIssues(forSelector: #selector(issueReported(_:)), atTarget: self)
return true
}
@objc func issueReported(_ 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:
| Type | Category | Description | Documentation |
|---|---|---|---|
| 1 | Custom | Report Custom Issues | View Details |
| 2 | Function | Function returns Nil | View Details |
| 3 | Function | Function returns value outside range | View Details |
| 4 | Function | Function returns unexpected boolean value | View Details |
| 5 | Performance | Delayed function execution | View Details |
| 6 | Performance | Screen loading delays | View Details |
| 7 | Feature | Track feature failures | View Details |
| 8 | — | Not Applicable for iOS | — |
| 9 | Memory | Low memory warning | View Details |
| 10 | — | Not Applicable for iOS | — |
| 11 | Crash | Crash Reporting | View Details |
| 12 | Exception | Report Exceptions | View Details |
| 13 | Network | Error in Status Code | View Details |
| 14 | Network | Exception during network call | View Details |
| 15 | Network | Delayed network call | View Details |
| 16 | — | Not Applicable for iOS | — |
| 17 | Memory | Abnormal Memory Usage | View Details |
| 18 | Network | Duplicate network call | View Details |
| 19 | — | Not Applicable for iOS | — |
| 20 | Memory | Spike in Memory Usage | View Details |
| 21 | Memory | Memory leaks | View Details |
| 22 | Error | Track NSError issues | View Details |
| 23 | — | Not Applicable for iOS | — |
| 24 | Performance | Slow frames | View Details |
| 25 | — | Not Applicable for iOS | — |
| 26 | UI | Track App Hangs | View Details |
| 27 | — | Not Applicable for iOS | — |
| 28 | — | Not Applicable for iOS | — |
| 29 | Startup | Cold App Startup delays | View Details |
| 30 | — | Not Applicable for iOS | — |
| 31 | — | Not Applicable for iOS | — |