requestLocationPermissions

Request location permissions to the user.

You MUST override androidx.appcompat.app.AppCompatActivity.onRequestPermissionsResult in your activity and call onRequestPermissionsResult from it otherwise no OnLocationPermissionsUpdate will be fired.

Parameters

activity

The activity for which you wish to ask location permissions.