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

Windows: Building to Emulator Should Allow Error Dialogs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: Release 4.1.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2015 Sprint 12 Windows

      Description

      Problem

      When running the emulator, if errors are encountered, they should show the standard red screen of death to the user. Even if the underlying build type is `release`, we need to find a way to surface these errors to the developer in the traditional Titanium way.

      Solution

      Introduce (or tweak, if it's already there) a deploy type with values such as "development" or "production" like we do for other platforms. Then, use this value to decide whether or not we should show the error dialog, instead of the build type.

      Example

      var win = Ti.UI.createWindow();
      win.add(Ti.UI.createLabel({ text: 'Please Wait...' }));
      win.open();
      setTimeout(function() {
          throw new Error('oh no!');
      }, 2000);
      

      ti build -p windows -C 8-1-1 -G 00000000-0000-1000-8000-000000000000

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi (Inactive)
              Reporter:
              dtoth Dawson Toth
              Reviewer:
              Dawson Toth
            • 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 Source Code