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 · 4 comments

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Copy link
Contributor

EdwardHinkle commented Sep 13, 2018

@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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Contributor

EdwardHinkle commented Sep 13, 2018

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

@RosemaryOrchard

This comment has been minimized.

Copy link

RosemaryOrchard commented Oct 21, 2018

I would like this too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment