request Location Permissions
Deprecated
Does not correctly request background location permission on Android 11 (API 30) and above. Use requestLocationPermissionsFromManifest instead.
Replace with
requestLocationPermissionsFromManifest(activity)Content copied to clipboard
Request location permissions to the user for the given activity.
Known issue: on Android 11 (API 30) and above, if background location permission is requested together with foreground location permissions in the same call, the platform auto-denies the entire batch. This method is kept as-is for backward compatibility but not recommended to use and deprecated. Please use requestLocationPermissionsFromManifest instead.
Remember to call onRequestPermissionsResult from the activity's own onRequestPermissionsResult