Overland-iOS icon indicating copy to clipboard operation
Overland-iOS copied to clipboard

Add support for Siri Shortcuts for starting and stopping trips

Open EdwardHinkle opened this issue 7 years ago • 19 comments

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.

GitHawk Upload by EdwardHinkle

EdwardHinkle avatar Sep 13 '18 21:09 EdwardHinkle

@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.

EdwardHinkle avatar Sep 13 '18 21:09 EdwardHinkle

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!

aaronpk avatar Sep 13 '18 21:09 aaronpk

Awesome, sounds good! I'll finish up my work on it then, and do some testing and then open the PR šŸ‘

EdwardHinkle avatar Sep 13 '18 21:09 EdwardHinkle

I would like this too!

RosemaryOrchard avatar Oct 21 '18 12:10 RosemaryOrchard

Would be way cool. šŸ‘

andreweick avatar Feb 10 '19 20:02 andreweick

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 šŸ™‚

EdwardHinkle avatar Feb 11 '19 04:02 EdwardHinkle

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

andreweick avatar Feb 11 '19 20:02 andreweick

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.

RosemaryOrchard avatar Oct 20 '19 23:10 RosemaryOrchard

Very late to the party, I know, but I would really like something like this if it were to be possible.

jeremycherfas avatar Mar 04 '21 13:03 jeremycherfas

Are people still interested in this?

clarkezone avatar Apr 06 '24 22:04 clarkezone

Yes!

jeremycherfas avatar Apr 07 '24 06:04 jeremycherfas

Are people still interested in this?

Very definitely!

RosemaryOrchard avatar Apr 08 '24 13:04 RosemaryOrchard

I'm planning to prototype this over the next week or so. Will report back.

clarkezone avatar Apr 14 '24 16:04 clarkezone