Questions tagged [app-shortcut]
15 questions
10
votes
4 answers
App isn´t installed error when tapping app shortcut in Nougat 7.1.1
I´m having some issues when adding an static app shortcut to an existing app. I followed the steps from https://developer.android.com/guide/topics/ui/shortcuts.html and the shortcut shows up, but when I tap it it doesn't launches the activity,…

Alejandro Casanova
- 3,633
- 4
- 31
- 46
10
votes
3 answers
Launch Fragment (instead of Activity) from Android 7.1 App Shortcut
I have decided to look at adding static shortcuts into an application, using this page as reference:
https://developer.android.com/preview/shortcuts.html
The XML for my shortcuts currently looks like so:

edwoollard
- 12,245
- 6
- 43
- 74
5
votes
1 answer
How to close the new Android 7.1 App Shortcut
When clicking on the app-shortcut, I am opening an Activity with a Dialog theme. It seems that the app-shortcuts are not closed if I use that theme on the Activity. If I delete the Dialog theme, the app-shortcuts are closed after clicking on one of…

ricamgar
- 143
- 1
- 4
3
votes
1 answer
Trouble with changing variables from the new iOS 16 App Intents
I have scaled down one of the Apps I am working on to use to learn how to program App Intents and utilize Siri in my apps. I will post the scaled-down version of my code below in its simplest form. This is a simple app that merely keeps a total in…

BooneDownSouth
- 33
- 4
3
votes
2 answers
How to correctly create static App-Shortcut on Android 7.1 ?
Background
Android 7.1 now has a new feature called "AppShortcut" . On the docs, they explain how to create static ones and dynamic ones, and they even have a sample app.
The problem
I tried out the sample, yet I've noticed that when I click on the…

android developer
- 114,585
- 152
- 739
- 1,270
2
votes
3 answers
Provide example parameter in a Siri Tip View
I am implementing iOS16 App Shortcuts. I am using SiriTipView to show users the possibilities.
My AddItem intent has a parameter for which Box entity to add the Item to. The shortcut will prompt for this.
@available(iOS 16.0, *)
struct MyShortcuts:…

Chris
- 4,009
- 3
- 21
- 52
2
votes
1 answer
Get AppShortcuts provided by an app
If I know an apps package name, how can I get a list of all available app shortcuts?
I can get my own apps shortcuts with the ShortcutManager like described here https://developer.android.com/guide/topics/ui/shortcuts.html, but how do I get a list…

prom85
- 16,896
- 17
- 122
- 242
1
vote
1 answer
Why is app shortcuts in latest android Nougat maxing out to 4?
It was mentioned that app shortcuts will have total 5. But on my emulator, they are maxing out to 4. I tried both static as well as dynamic shortcuts. Is it a known bug?

Rishikesh Shukla
- 317
- 1
- 12
0
votes
0 answers
Custom group/category for the „Find Entity“ actions
I’ve seen that some of Apple’s apps group the automatically generated "Find XYZ" actions into custom categories. For example Safari, Calendar, or Reminders do this.
I know that you can group AppIntents into custom categories via:
static let…

alexkaessner
- 1,966
- 1
- 14
- 39
0
votes
0 answers
App Intents @Parameter with one-sided inclusive range (no upper bound)
I want to define an AppIntent/Shortcut with a number @Parameter (of type double) that has a defined range. The range should be one-sided to only include positive numbers. Basically like the Swift range: 0...
The @Parameter uses the inclusiveRange…

alexkaessner
- 1,966
- 1
- 14
- 39
0
votes
0 answers
Crash when using shared instance of a data controller in App Entity definition
I'm getting an unusual unrecognized selector sent to instance crash when trying to access a shared data controller object from inside an app shortcuts AppEntity definition. It seems to relate to [NSCFString bytes].
The data controller is declared in…

Chris
- 4,009
- 3
- 21
- 52
0
votes
0 answers
How do I modify or remove system-defined shortcuts such as "app info" and "Pause app" in android
I have tried retrieving all the existing shortcut using
shortcutManager.getShortcuts(ShortcutManager.FLAG_MATCH_PINNED) with all existing flag but it didnt retrieve "App info" and "Pause app" shortcut.

K P
- 182
- 9
0
votes
1 answer
Some of my iOS AppShortcut phrases work, but some launch Safari?
One of my intents responds to an optional parameter. The parameter is defined as an enum with 4 values (case today, week, month, year). I have 2 AppShortcut phrases defined, one that does not specify the parameter and another which does.
…

Koa
- 173
- 8
0
votes
1 answer
iOS 16 - How to include more than 1 AppIntent / AppShortcut
I've implemented 2 different AppIntents, each includes their own AppShortcutsProvider with phrases unique to each AppIntent. Individually, they work great. But, when I try to include both in my app, only the last one defined works.
In my…

Koa
- 173
- 8
0
votes
1 answer
Can't load dynamically provided parameter values And handle method is not getting called in Intents in iOS
I am getting An unknown error occurred. when I tap on parameter which is dynamically provide in my shortcut inside Apples Shortcut app. And the handle(intent: TestIntent) async -> TestIntentResponse is not getting called.
Implemented the Handing…

YodagamaHeshan
- 4,996
- 2
- 26
- 36