aaronpk / Overland-iOS

šŸ“Œ GPS logger for iOS devices
https://overland.p3k.app
Apache License 2.0
569 stars 88 forks source link

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

Open EdwardHinkle opened 5 years ago

EdwardHinkle commented 5 years ago

This enables a couple of things:

GitHawk Upload by EdwardHinkle

EdwardHinkle commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

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

RosemaryOrchard commented 5 years ago

I would like this too!

andreweick commented 5 years ago

Would be way cool. šŸ‘

EdwardHinkle commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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 commented 3 years ago

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

clarkezone commented 5 months ago

Are people still interested in this?

jeremycherfas commented 5 months ago

Yes!

RosemaryOrchard commented 5 months ago

Are people still interested in this?

Very definitely!

clarkezone commented 4 months ago

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

radh21301 commented 1 week ago

This would be s great addition! I say this because Overland currently drains too much battery, which is obviously expected with the setting I have. But most of the time, I am at work or at home. And overland is still running in the background and draining battery.

If we have shortcut support, I can automate Overland to stop recording when I arrive at home/work, and resume as soon as I leave that area. Would definitely save a lot of battery.