react-native-fused-location
react-native-fused-location copied to clipboard
Location settings dialog
Here is my draft for showing a dialog to programmatically set appropriate location settings. Based on https://developers.google.com/android/reference/com/google/android/gms/location/SettingsApi.
What are your thoughts?
There is a very good PR I must say. I probably need to merge this and get this functionality in. But before I do that I need to dig deeper and see if I can refactor it a little more. For a start, may I ask why you used the depreciated Settings Api and not the newer SettingsClient?
Feel free to refactor! I used the deprecated SettingsApi because you already used the deprecated FusedLocationProviderApi, and I thought those were from the same "generation" of APIs.
@hortemo Alright. Would you be kind enough to send a PR with a SettingsClient usage instead? That'd be really great. As I'm planning to move on to the newer FusedLocationProviderClient pretty soon. :)