[TIMOB-26101] iOS 12: Support Siri Shortcuts via Intents
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Vijay Singh |
Created | 2018-06-06T01:37:29.000+0000 |
Updated | 2019-06-17T21:49:10.000+0000 |
Description
Siri shortcuts are a powerful way to interact with repeated activities via Siri. There are two possible ways of accessing Siri shortcuts:
- Via NSUserActivity
- Via Intents
We already support all user-activity related API's, so exposing it there would just mean to expose a few new properties to enable siri shortcuts.
For intents, we need to do more work:
- Be able to create an Intent target (works already)
- Be able to create a suru shortcut configuration file (could work, but may need CLI tooling to compile the config to the actual app)
- Be able to use the generated intent code from both the main target (Titanium) and the Intents extension (hardest part, maybe easier via Hyperloop).
Supporting Siri shortcuts using NSUserActivity can be easily done by exposing some APIs. We can do it early. So I have created a new ticket TIMOB-26312 to expose new NSUserActivity APIs. Current ticket can be tracked for supporting Siri shortcuts via Intents.