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

added forceRequestLocation flag and detect no No location provider available #68

Merged
merged 2 commits into from
Jul 15, 2019

Conversation

cladjules
Copy link
Contributor

In the case where "Improve Location accuracy" is Off on Android O+, it is still possible to use just the GPS to retrieve locations.

To cover those scenarios, I have added a flag to allow requesting a location even though the SETTINGS_NOT_SATISFIED error was raised.

That will allow trying to request a location even though the user has clicked "Deny" on the Improve Location Request modal.

@cladjules cladjules changed the title added forceRequestLocation flag added forceRequestLocation flag and detect no No location provider available Apr 15, 2019
@cladjules
Copy link
Contributor Author

I have updated the PR to include detection of "No location provider available".
It's a big miss compared to the official library, as it would usually throw an error "No location provider available" with error code 2 when the location is disabled altogether.

@Agontuk
Copy link
Owner

Agontuk commented Apr 29, 2019

Thanks for the PR, I'll look into it asap.

@J-Krush
Copy link

J-Krush commented Jul 9, 2019

@Agontuk Any reason this PR hasn't been merged in yet?

@Agontuk
Copy link
Owner

Agontuk commented Jul 12, 2019

@jkreish to be honest, I still haven't been able to properly review this PR. I have some free time now, so I'll take a look at it.

@Agontuk Agontuk merged commit c581fc8 into Agontuk:master Jul 15, 2019
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.

3 participants