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

Feature Request - Use Android Activity Recognition API

Open dough29 opened this issue 8 years ago • 9 comments

Hello,

I actually use a Traccar server with my home automation system. Cars have trackers (TK102) and Android phones use Macrodroid APP to share location with OsmAnd protocol.

I use macro with Android Activity Recognition API to share location at different frequencies :

  • still : send location every 1 hour
  • walking : every 30 minutes
  • running : every 15 minutes
  • biking : every 1 minutes
  • in car on battery : every 2min30
  • in car and charging : every 30 secondes

I think this can be a cool feature to add to Android (and iOS) Traccar Client app, what do you think ?

dough29 avatar Oct 09 '17 08:10 dough29

It's part of Google APIs, so it's not part of open source.

tananaev avatar Oct 09 '17 12:10 tananaev

Hmm what do you mean ?

That API just tells apps that subscribed to "Activity Recognition" whether user is still, walking, running, driving, ...

So if implemented the app can do actions like sharing location at desired frequency for each activity.

dough29 avatar Oct 09 '17 12:10 dough29

Those APIs are proprietary and not available on phones without Google services.

tananaev avatar Oct 09 '17 12:10 tananaev

Ok, so not available for custom devices but what about giving that option to people using Traccar Client on their daily phone ?

dough29 avatar Oct 09 '17 12:10 dough29

What do you mean custom devices? There are plenty of devices without Google services.

tananaev avatar Oct 09 '17 12:10 tananaev

I was thinking some people have old phones with nothing installed else the Traccar Client to have a cheap tracker device ?

Most of Android phones have Google services or am I mistaking ?

I didn't develop on Android for many years now so I think I'm outdated on this subject ^^

dough29 avatar Oct 09 '17 12:10 dough29

It's more about the principle. I don't want open source project to depend on proprietary Google technology.

tananaev avatar Oct 09 '17 12:10 tananaev

Yes I understand, by the way the user can choose to use or not the feature.

dough29 avatar Oct 09 '17 12:10 dough29

Tananaev, thanks for sticking to your principles on this one. I am one of those Traccar users who doesn't want any Google "services" on my phone.

Tyler-2 avatar Oct 13 '17 03:10 Tyler-2