onaio / kujaku

Mapping and check-in library for Android using MapBox SDK
https://ona.io
BSD 2-Clause "Simplified" License
18 stars 11 forks source link

Abstract location provider in the passive recording feature to enable configurable location provider #283

Open ekigamba opened 5 years ago

ekigamba commented 5 years ago

The TrackingService.java which provides the GPS Passive recording feature uses the GPS as the provider and this cannot be changed to use the Fused Location provider.

The location client should be abstracted and made configurable to enable the host applications to either use the GPS provider, Fused Location provider or a hybrid of multiple providers that it prefers to use(In a case where the host application wants to chose the best location from the locations provided itself)