traccar / traccar-client-android

Traccar Client for Android
https://www.traccar.org/client
Apache License 2.0
661 stars 729 forks source link

Tracking On when Bluetooth Connected. #330

Open Nayar opened 6 years ago

Nayar commented 6 years ago

Hello,

How about using the Android Bluetooth connected event to activate traccar and deactivate it?

Scenario:

  1. I enter my car and turn on ignition. My phone connects to the car radio, traccar detects this event, it starts sending data to the server.
  2. I turn off my car and exit. Traccar detects disconnected bluetooth, it stops sending data.

The aim in ubiquitous computing is less human interaction to do tedious tasks. What do you guys thinkg?

tananaev commented 6 years ago

I believe you can already implement this and many other scenarios using third party scheduling apps (e.g. Tasker).

AlphaDE commented 1 year ago

@tananaev

But to use Tasker, does the client app support Tasker's api so tracking can be started/stopped out of tasker or is there an intent to do so, which Tasker can sent?

tananaev commented 1 year ago

Tasker can use shortcuts and intents.

AlphaDE commented 1 year ago

Thanks @tananaev , found the shortcut way. That does work.