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

iOS: Ti.UI.iOS.ApplicationShortcuts does not work on device with LiveView enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 5.1.1
    • Fix Version/s: None
    • Component/s: iOS, LiveView, Tooling
    • Labels:
    • Story Points:
      3
    • Sprint:
      2016 Sprint 23 Tooling

      Description

      Running the following code on device fails if liveview is enabled. The result is:

      TypeError: undefined is not a function (evaluating 'Ti.UI.iOS.createApplicationShortcuts()')

      Running with LiveView off works.

      if (OS_IOS && Ti.UI.iOS.forceTouchSupported) {
          var appShortcuts = Ti.UI.iOS.createApplicationShortcuts();
       
          appShortcuts.addDynamicShortcut({
              itemtype: "post_text",
              title: "Text",
              subtitle: "Tap to post text",
              icon: Ti.UI.iOS.SHORTCUT_ICON_TYPE_COMPOSE,
              userInfo: {
                  post: {
                      type: "text"
                  }
              }
          });
       
          appShortcuts.addDynamicShortcut({
              itemtype: "post_photo",
              title: "Photo",
              subtitle: "Tap to post a photo",
              icon: Ti.UI.iOS.SHORTCUT_ICON_TYPE_CAPTURE_PHOTO,
              userInfo: {
                  post: {
                      type: "photo"
                  }
              }
          });
       
          appShortcuts.addDynamicShortcut({
              itemtype: "post_video",
              title: "Video",
              subtitle: "Tap to post a video",
              icon: Ti.UI.iOS.SHORTCUT_ICON_TYPE_CAPTURE_VIDEO,
              userInfo: {
                  post: {
                      type: "video"
                  }
              }
          });
      }

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              jasonkneen Jason Kneen
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20774
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration