Application short cut items

Hi all,

With the new force touch feature, iphone users can press app icons in the home menu to unveil shortcut items.

These menu items are set by adding UIApplicationShortcutItems to the info.plist as documented here:

https://developer.apple.com/library/prerelease/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW36

In app, they are handled by a simple callback as documented here:

https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplicationShortcutItem_class/

Could you please implement this feature?

I tested adding to build.settings the code snippet below , but no shortcut items showed up so far:

            UIApplicationShortcutItems =
            {
                {
                    UIApplicationShortcutItemTitle = “Action 1”,
                    UIApplicationShortcutItemtype = “action1”
                },
                {
                    UIApplicationShortcutItemTitle = “Action 2”,
                    UIApplicationShortcutItemtype = “action2”
                }
            },

Thank you very much,

Pascal Bancel

I might be misunderstanding your post, but it seems that it is  pre-supposing that 3D touch is supported in Corona apps. This isn’t the case at this point. See the below forum post, which contains a small discussion on the feature, along with a link to a feature request to vote upon.

https://forums.coronalabs.com/topic/59311-3d-touch-force-touch

Hi Alex,

First sorry in advance for my average english.

The post you link to is about 3d force touch which is a different feature : handling a third axis coordinates in Corona events to materialize pressure, as I understand it.

The feature I request is different: handle the new menu items actions in Corona.

But you are right, I am pre-supposing that the content in build.settings’ iphone.plist is copied straight to XCode’s info.plist file which is probably not the case.

Regards,

OK, I think I understand now.

There are tons of forum posts containing information from Corona engineers, stating that the Corona Runtime requires a live app running in the foreground. The feature that you’re referencing above appears to be interaction with an app shortcut on the Home screen of a device, rather than  within the app while it’s running. Since this is the case, it’s unlikely to have this feature available via the SDK product. Perhaps you can investigate this feature from an Enterprise project?

Again, if I’m misunderstanding, please let me know. Hope this helps!

I might be misunderstanding your post, but it seems that it is  pre-supposing that 3D touch is supported in Corona apps. This isn’t the case at this point. See the below forum post, which contains a small discussion on the feature, along with a link to a feature request to vote upon.

https://forums.coronalabs.com/topic/59311-3d-touch-force-touch

Hi Alex,

First sorry in advance for my average english.

The post you link to is about 3d force touch which is a different feature : handling a third axis coordinates in Corona events to materialize pressure, as I understand it.

The feature I request is different: handle the new menu items actions in Corona.

But you are right, I am pre-supposing that the content in build.settings’ iphone.plist is copied straight to XCode’s info.plist file which is probably not the case.

Regards,

OK, I think I understand now.

There are tons of forum posts containing information from Corona engineers, stating that the Corona Runtime requires a live app running in the foreground. The feature that you’re referencing above appears to be interaction with an app shortcut on the Home screen of a device, rather than  within the app while it’s running. Since this is the case, it’s unlikely to have this feature available via the SDK product. Perhaps you can investigate this feature from an Enterprise project?

Again, if I’m misunderstanding, please let me know. Hope this helps!