Enable quick action shortcuts triggered from a long-press on the home screen app icon (3D Touch / Quick Actions).
Enable quick action shortcuts when users long-press your app icon on the home screen. Nativine embeds native iOS UIApplicationShortcutItem (3D Touch / Haptic Touch) and Android ShortcutManager bridges, allowing users to jump directly to specific app features.
Home Screen Shortcuts give power users instant 1-tap access to core features. Nativine's App Shortcuts plugin registers native launcher quick action items:
To dynamically register or clear home screen shortcuts in JavaScript, call nativine.appShortcuts.setShortcuts():
nativine.appShortcuts.setShortcuts({
items: [
{
id: 'shortcut_search',
title: 'Search Products',
subtitle: 'Find items instantly',
icon: 'search',
targetUrl: 'https://yourdomain.com/search'
},
{
id: 'shortcut_cart',
title: 'View Cart',
subtitle: 'Check out now',
icon: 'shopping_cart',
targetUrl: 'https://yourdomain.com/cart'
}
],
callback: 'onShortcutsUpdated'
});
| Parameter | Type | Description |
|---|---|---|
items | array | Required. Array of shortcut item objects (max 4). |
targetUrl | string | Required. Deep link URL opened on shortcut launch. |
Both iOS and Android limit active home screen quick action items to 4 shortcuts maximum.
Yes. Calling setShortcuts() updates launcher shortcuts in real time without requiring an app update.