Capacitor: Use Fused Location Provider for Android

Created on 26 Mar 2018  路  4Comments  路  Source: ionic-team/capacitor

Getting a location under android is quite difficult. The standard API implemented now in capacitor returns the GPS provider which results in never getting a position indoors. This is not the case under iOS. A better way under Android is the Fused Location Provider which already handles that. Any chance we could migrate to the Fused Location Provider?
This would mean we have to include the Google Play services.
See docs here: https://developers.google.com/android/reference/com/google/android/gms/location/FusedLocationProviderClient

android high

Most helpful comment

Please merge this @adamdbradley, @bensperry or someone else of the @ionic-team

All 4 comments

This is a much needed pull request! Great job @JStumpp !

I have taken the liberty to turn this into a capacitor plugin in the meantime while we're waiting for this to be merged into the official capacitor repo
https://www.npmjs.com/package/@johannesnormannjensen/capacitor-fused-location

I have made this as a mean for other developers to use it while waiting. Please let me know if you have anything to add to this.

This really need to be merged. Actually GPS application are unusable.

Please merge this @adamdbradley, @bensperry or someone else of the @ionic-team

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexcroox picture alexcroox  路  3Comments

Kepro picture Kepro  路  3Comments

peterpeterparker picture peterpeterparker  路  3Comments

stripathix picture stripathix  路  3Comments

moberwasserlechner picture moberwasserlechner  路  3Comments