traccar / traccar-client-ios

Traccar Client for iOS
https://www.traccar.org/client
Apache License 2.0
203 stars 302 forks source link

iOS Shortcuts and Automation #72

Open drguitarum2005 opened 3 years ago

drguitarum2005 commented 3 years ago

Would it be possible to allow support by the iOS Shortcuts app, specifically automation routines? I'd like to be able to toggle the client on/off based on Geolocation (i.e. turn Traccar off if I'm going outside a certain zone) OR based on a schedule (i.e. turn Traccar off after 9 PM and back on at 6 AM).

tananaev commented 3 years ago

Do you have any documentation on how to integrate it?

drguitarum2005 commented 3 years ago

Honestly, no. I'm not an iOS developer so I'm unsure how that part works. I just know when I attempt to make an automation, there are certain apps I can choose actions for and Traccar Client is not one of them.

A more direct way would be adding the option right into the client. 2 fields for "start time" and "stop time" would be as simple as it would need to be.

tananaev commented 3 years ago

I don't think adding it directly into the client is an option. We want to keep it simple, but it would be nice if there's a way to integrate it into the standard shortcuts app.

420Dope commented 3 years ago

Would really cool if we can enable or disable it via the Shortcuts app.

dfcowan commented 1 year ago

I would like this feature also. The shortcuts already created for the UIApplicationShortcutItems could be adapted into intents or activities usable by the siri shortcuts system. Personally I would like the feature so that I can start/stop the service using a shortcut when airplane mode is toggled.

https://developer.apple.com/documentation/sirikit/offering_actions_in_the_shortcuts_app

joonhyuk commented 10 months ago

+1

Wanna turn on and off based on home wifi connection

JoramHhub commented 3 months ago

Would love to see this get implemented so I can start the service when my phone connects to my car’s bluetooth.