traccar-client-ios icon indicating copy to clipboard operation
traccar-client-ios copied to clipboard

iOS Shortcuts and Automation

Open drguitarum2005 opened this issue 4 years ago • 9 comments

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

drguitarum2005 avatar Oct 29 '20 17:10 drguitarum2005

Do you have any documentation on how to integrate it?

tananaev avatar Oct 29 '20 17:10 tananaev

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.

drguitarum2005 avatar Oct 29 '20 18:10 drguitarum2005

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.

tananaev avatar Oct 29 '20 18:10 tananaev

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

420Dope avatar Mar 18 '21 14:03 420Dope

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

dfcowan avatar Apr 04 '23 19:04 dfcowan

+1

Wanna turn on and off based on home wifi connection

joonhyuk avatar Sep 03 '23 03:09 joonhyuk

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

JoramHhub avatar Mar 08 '24 11:03 JoramHhub