Switch client's GPS service on/off ?

Moonay2 years ago

Hello,
I have searched a little on the forums, but couldn't find anything about, and anyone talking about this idea, or whether it is possible or not.

My Idea was, since the traccar client is connected to the server via the cellular network, we could use this connection to send an order to the client from the server such as turning ON / OFF the GPS localization service of the phone, this would allow for the user to know where the phone is located at the push of a button rather than having a phone with an always running, always battery-draining GPS service.

I dont know if this is feasible, but it would be a nice option, so I'd like to turn this into a requested feature.
From what I have seen using traccar : the client isnt communicating with the server if the gps service is off, so it probably would need to be changed to still send device info over the cellular network and receive info from the server for this purpose.

Anton Tananaev2 years ago

In theory it's possible to implement. I guess using data push notifications would be better for this use case. This way you could request location even if the app is not running and not connected.

Moonay2 years ago

I'd be happy if we could have this as an easy to use feature.
Just click a button on the web interface next to the client device, to turn on the gps service remotely on that client.
But I did not understand what you meant by 'receiving the location even if the app isnt running and not connected', I though the app would at least need to be running for it to be connected to the server.

Anton Tananaev2 years ago

Read about push notifications.