traccar / traccar-client-android

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

Feature Request - Use Android Activity Recognition API #293

Open dough29 opened 6 years ago

dough29 commented 6 years ago

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 :

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

tananaev commented 6 years ago

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

dough29 commented 6 years ago

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.

tananaev commented 6 years ago

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

dough29 commented 6 years ago

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

tananaev commented 6 years ago

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

dough29 commented 6 years ago

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 ^^

tananaev commented 6 years ago

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

dough29 commented 6 years ago

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

Tyler-2 commented 6 years ago

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.