Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28420

iOS: Unhandled native exceptions invoked via JS should show an error dialog

    Details

    • Story Points:
      3

      Description

      Summary:
      When an "unhandled" JavaScript exception occurs, we display an error dialog with a stack trace to make it easy to debug. We need to do the same for native Objective-C and Swift exceptions (ie: thrown NSException objects) which shows both a native stack trace and JavaScript stack trace.

      Currently, native exceptions are logged and then they immediately hard-crash the app.

      Note:
      I think this issue might be preventing us from posting native stack traces to our ACA (AMPLIFY Crash Analytics), but I have not confirmed this.

      Test:

      1. Build and run the below code on iOS.
      2. Notice app crashes and goes back to home screen. (Should show error dialog.)

      Ti.Filesystem.openStream(0, false);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
                Reviewer:
                Gary Mathews
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration