Project: titanium
Issue TIMOB-20131: Titanium.UI.iOS.ApplicationShortcuts does not work on device with LiveView enabled
Running the following code on device fails if liveview is enabled. The result is: {code:js}TypeError: undefined is not a function (evaluating 'Ti.UI.iOS.createApplicationShortcuts()'){code} Running with LiveView off works. {code:js} 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" } } }); }{code}
Story points: 3