Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Siri Shortcuts for starting and stopping trips #64

Open
EdwardHinkle opened this issue Sep 13, 2018 · 13 comments
Open

Add support for Siri Shortcuts for starting and stopping trips #64

EdwardHinkle opened this issue Sep 13, 2018 · 13 comments

Comments

@EdwardHinkle
Copy link
Contributor

EdwardHinkle commented Sep 13, 2018

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
Copy link
Contributor Author

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

@aaronpk
Copy link
Owner

aaronpk commented Sep 13, 2018

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!

@EdwardHinkle
Copy link
Contributor Author

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

@RosemaryOrchard
Copy link

I would like this too!

@andreweick
Copy link

Would be way cool. 👍

@EdwardHinkle
Copy link
Contributor Author

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 🙂

@andreweick
Copy link

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

@RosemaryOrchard
Copy link

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.

@jeremycherfas
Copy link

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

@clarkezone
Copy link
Contributor

Are people still interested in this?

@jeremycherfas
Copy link

Yes!

@RosemaryOrchard
Copy link

Are people still interested in this?

Very definitely!

@clarkezone
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants