Skip to content

Implement new mechanism to handle critical/dangerous permissions #312

Closed
@codeanticode

Description

@codeanticode

Register handler method with requestPermission(“the.name”, “callbackName”), with the callback being passed true or false according to the outcome of the permission request operation:

void setup() {
  requestPermission("android.permissions.BODY_SENSORS", "initSensors");
}

void initSensors(boolean granted) {
  if (granted) {
    // init sensors
  } else {
    // error handling
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions