Exceptions can contribute to invalid application states, resulting not only in application crashes but also in negative user reviews. This may lead to users deleting your app, which in turn may affect your organization's profitability. With New Relic Mobile's Handled exceptions user interface, mobile development managers and their developer teams can identify significant factors affecting poor mobile app experience, and use filterable data to find a resolution more quickly.
Handling exceptions as they occur can help improve your mobile app users' experience, but it's not enough to catch exceptions. You also need to know how to prevent them. For example:
- How many different types of handled exceptions are occurring? A high occurrence rate may necessitate changes to the back-end systems.
- Why does the user's app usage result in a try/catch? What is the context for the exceptions?
- When can a test environment's responses to handled exceptions indicate additional, more serious problems?
- What would have caused a crash if the exception had not been caught in production? What else (in the code or back-end API) is still affecting the users' experience?
By using handled exceptions with New Relic Mobile, you can identify and resolve these kinds of issues more quickly.
rpm.newrelic.com/mobile > (select an app) > Exceptions > Handled exceptions: As you explore the wealth of data in the charts and table, use groups and filters to discover patterns that help you determine the root cause of mobile app exceptions.
Handled exception features
Slice and dice your exception data.
New Relic Mobile offers both an API and a user interface to explore the data most important to your business.
Understand a particular user's experience.
Examine the percentage charts to see overall trends with users and sessions at a glance. Then, use custom attributes to focus on exceptions related to paid accounts than free accounts.
Pinpoint when most exceptions occur.
For example, group on
Align issues with common characteristics.
Explore the event trail before and after a crash.
With New Relic Mobile you get a more complete picture of events before and after crashes occur, so you can analyze and resolve problems from multiple angles:
Additional requirements include:
- Android: New Relic Mobile's Android agent version 5.15.0 or higher
- iOS: New Relic Mobile's iOS agent version 5.15.0 or higher
New Relic Mobile automatically includes default attributes that you can use to explore your handled exceptions data in New Relic Insights and get specific details:
- Use the
recordHandledExceptions()method for the Android or iOS SDK API.
- Query the
MobileHandledExceptionevent type in Insights. For more information, see the Insights examples for New Relic Mobile.