traccar / traccar-client-android

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

Network available and location available report #450

Open SuarezJF opened 1 year ago

SuarezJF commented 1 year ago

Hi. Again, i am very pleased using this app, it's great. I have been working getting the values traccar client sends, it's almost ideal to me.

I wonder if you could, please, in future versions of traccar client, add a coup of fields in the array of data it sends, i mean having this:

(
    [id] => XXxxxXXXxXX
    [timestamp] => 1686429423
    [lat] => -38.9613683
    [lon] => -68.0680459
    [speed] => 6.556485525446892
    [bearing] => 244.0159454345703
    [altitude] => 285.1000061035156
    [accuracy] => 96.0
    [batt] => 4.0
    [charge] => true
)

just add two like:

[network]  => true
[location] => false

am asking since the app already reports when network is available or not in the status, it can be sent in the array, for example.

Hope you consider it, thanks.

tananaev commented 1 year ago

You would need to explain why you need those and what those mean exactly.

SuarezJF commented 1 year ago

OK.

means in the record if network service in the mobile is available or not (such as in the status report within the app). I need it because i can see in the array report:

    [timestamp] => 1686429423

and i use it to see the difference between mobile time log and the date report arrived to server. BUT, i don't know if it is caused by a network trouble (all the way to the server) or it is because mobile has not network available. Sending this, will clear this up.

I hope to be clear enough, but if not, tell me and i will try to say it better.

Thanks

tananaev commented 1 year ago

If you disable location, you won't get any data at all.

As for network, it should be easy to check by the time difference.

SuarezJF commented 1 year ago

yes, it is exactly what i have said.

You asked me, why i need what i reuqested, and now, i am telling.

I need traccar client to send to the server if network in mobile is disabled or not. More than time calculations i can make. It is not the same network unreacheble with network disabled.

so with location, i need traccar client to send if location is available or not. Again, it is not the same not having any data cause gps is not reachable with location service disabled.

Please, tell me if i am being clear, if you understand what i am requesting.

All these is thought if the users of THAT mobile intentionally disables those services. I need to know it on servers side.

SuarezJF commented 1 year ago

so... you're also without connection concept? you just stop reporting..? your're offline?, you're iddle?, bat=0? :-D