-
Notifications
You must be signed in to change notification settings - Fork 353
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
Add google location dialog #212
Comments
@mrmans0n It would be really helpful if you add this option too.. Thanks in advance |
+1 |
That option is provided. provider = new LocationGooglePlayServicesProvider(); |
@araiyusuke thanks for your suggestion, it shows the dialog indeed. But the location itself is not fetched, the callback is not fired. Here is my code:
If GPS is already enabled and it doesn't need to show the dialog, it works normally. Any info on that? |
Hey I was experiencing the same problem, but then found out the solution. It's there in the log, saying that you will get your callback in your Activity's callback. Then you need to call the provider's onActivityResult to continue the flow or probably just start requesting location again.
|
Basically you can not show Location Settings if not init SmartLocation using Activity Context, because the Dialog only show if context is instance of Activity as shown below..
|
This library is great! It simplifies a lot the code for getting locations, so thanks! Now, to show the dialog (same as the Google Maps dialog) that turns the GPS on, the library needs to use LocationSettingsRequest.Builder and use the method setAlwaysShow(true). Can you add this option please?
The text was updated successfully, but these errors were encountered: