This PR integrates in the library a two-step permissions request workflow required when requesting special permissions such as BODY_SENSORS_BACKGROUND and ACCESS_BACKGROUND_LOCATION.
Android allows to request several permissions at once. However, special permissions require other permissions to be granted in order to be requested. For example, the BODY_SENSORS permission has to be granted before requesting BODY_SENSORS_BACKGROUND. In other words, a two-step workflow has to be implemented:
Request normal permission.
If granted, request special permission.
This is a non-trivial workflow. Therefore, the library provides the PermissionsRequestHandler, providing functions implementing the workflow.
This PR integrates in the library a two-step permissions request workflow required when requesting special permissions such as
BODY_SENSORS_BACKGROUND
andACCESS_BACKGROUND_LOCATION
.Android allows to request several permissions at once. However, special permissions require other permissions to be granted in order to be requested. For example, the
BODY_SENSORS
permission has to be granted before requestingBODY_SENSORS_BACKGROUND
. In other words, a two-step workflow has to be implemented:This is a non-trivial workflow. Therefore, the library provides the
PermissionsRequestHandler
, providing functions implementing the workflow.