LocationManager
LocationManager copied to clipboard
ACCESS_BACKGROUND_LOCATION example?
Thanks for the library.
Have you an example of using the library to allow ACCESS_BACKGROUND_LOCATION?
Have you tried within a service / workmanager with a configuration something link the following?
LocationConfiguration awesomeConfiguration = new LocationConfiguration.Builder()
.keepTracking(true)
.askForPermission(
new PermissionConfiguration.Builder()
.requiredPermissions(
new String[] { permission.ACCESS_FINE_LOCATION, permission.ACCESS_BACKGROUND_LOCATION }
)
.build()
)
.useGooglePlayServices(new GooglePlayServicesConfiguration.Builder().build())
.useDefaultProviders(new DefaultProviderConfiguration.Builder().build())
.build();
Happy to accept PR for the example if you build :)