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

Use Fused Location Provider for Android #379

Closed
JStumpp opened this issue Mar 26, 2018 · 5 comments · Fixed by #2409
Closed

Use Fused Location Provider for Android #379

JStumpp opened this issue Mar 26, 2018 · 5 comments · Fixed by #2409

Comments

@JStumpp
Copy link
Contributor

JStumpp commented Mar 26, 2018

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

@mlynch
Copy link
Contributor

mlynch commented Mar 26, 2018

@johannesnormannjensen
Copy link

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.

@wannymiarelli
Copy link

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

@Jaspur
Copy link

Jaspur commented Jun 19, 2019

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

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 12, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants