configureUserHelper method

Future<void> configureUserHelper(
  1. UserHelperOptions options
)

Automatically assists users in resolving app-related permission and sensor issues.

This method presents a user interface that explains detected configuration issues and guides users through the required steps to resolve them, following best practices for runtime permission requests.

Issues addressed include:

  • Missing permissions for Location or Bluetooth.
  • Disabled Location or Bluetooth sensors.

Use UserHelperOptions to configure the available options. Call enableUserHelper as a shortcut to enable the user helper with default configuration. Call disableUserHelper as a shortcut to disable the user helper.

Implementation

Future<void> configureUserHelper(UserHelperOptions options) async {
  await methodChannel.invokeMethod(
    "userHelper.configure",
    options.toMap(),
  );
}