Add support for Siri Shortcuts for starting and stopping trips
This enables a couple of things:
- Make all trip modes available to the Siri Shortcuts app for multi-step shortcuts
- Donate the correct shortcut every time a trip is started and stopped so that Siri can analyze when you start and stop trips and provide smart suggestions for starting and stopping trips
- Shortcuts should use custom intents so they can run in the background and not have to launch the app.

@aaronpk I have the Shortcuts and Donations working, and am working on the custom Intent handler. This will introduce some added complexity to the app though, so I want to make sure this is something you're cool with. A Siri Intent is an extension which runs in a different process. That means the SQLite database will need to be stored in an App Group rather than within the primary app, allowing for both the app and the extension to communicate with it.
Whoa, this is very cool. I haven't used siri suggestions so I didn't even know this was possible. I'd be open to changes with the app group stuff to make this work!
Awesome, sounds good! I'll finish up my work on it then, and do some testing and then open the PR š
I would like this too!
Would be way cool. š
Sounds good. Iām hoping to get this merged in at some point. My iOS development has slowed because my work laptop (which can only be used for official work stuff, which this is not) is the only Mac I really have access to currently. Once I get my Mac issues resolved, this is one of the first iOS things Iām gonna wrap up š
Shoot, I wish I could help on that -- I see from your profile you are just up the road a piece. The "snow storm" closed the schools down here in the commonwealth. Let me know your apple ID and I can at least Apple Pay Cash you a coffee.
Thanks again
Follow up: I'd still love this. Ideally with the iOS 13 "shortcuts with parameters" actions we'd have one shortcut with "start XYZ tracking" where we could set the kind of tracking inside the Shortcut, and also a Shortcut to check if a session is running. This would also hook into Shortcuts automations, so when you start an outdoor walk workout on your Apple Watch it could start a walk in Compass.
Very late to the party, I know, but I would really like something like this if it were to be possible.
Are people still interested in this?
Yes!
Are people still interested in this?
Very definitely!
I'm planning to prototype this over the next week or so. Will report back.