Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: allow changing underlying GPS service implementation #29

Open
xpathexception opened this issue Sep 28, 2021 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@xpathexception
Copy link

xpathexception commented Sep 28, 2021

Current LocationTracker implementation is nailed to the FusedLocationProviderClient. Therefore moko-geo is unable to work properly on android devices without Google Services installed. Google Services are unavailable/not installed/not used on lots of chinese devices and some of open source firmwares.

This issue is somewhat releated to #16, because running moko-geo sample app on AVD image without Google APIs/Google Play leads to the same result with related log messages:

W/GooglePlayServicesUtil: dev.icerock.moko.samples.geo.debug requires the Google Play Store, but it is missing.
W/GoogleApiManager: The service for com.google.android.gms.internal.location.zzaz is not available [...]

There are at least couple of alternatives that can be used instead of FusedLocationProviderClient:

  • com.yandex.mapkit.location.LocationManager from Yandex MapKit (don't really know what they are using as underlying GPS service)
  • android.location.LocationManager from Android SDK

Besides, as a user of moko-geo I would like to have an ability to use my own bindings to location services from other custom private/device specific SDK's. So it's also would be nice to have an interface allowing to do such bindings and some APIs allowing to choose different implementations at runtime.

@mykola-dev
Copy link

+1 on this
We use huawei services in our app. So, unfortunately, can't use this library.

@Alex009 Alex009 added the enhancement New feature or request label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants