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

Make Geolocation plugin work if Google Play Services are not enabled #2240

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pietervdvn
Copy link

Hi,

I'm currently in the process of packaging MapComplete into an Android app, with capacitor.

However, many of my users (including myselfs) are a bit paranoia and disable the Google Play Services or run custom ROMS without them. However, the geolocation plugin would refuse to work if those are not available.

As such, I have modified the geolocation-plugin to work with the google play services if they are available and to fallback to the stock Android API's if the Play Services are not available.

I've also moved some duplicated code into methods, in order to maintain some readability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant