sendAndroidAppIntent method

Future<bool> sendAndroidAppIntent(
  1. String action
)

Open Android settings for the current app package. returns operation successful or failure.

Implementation

Future<bool> sendAndroidAppIntent(String action) async {
  final success = await _androidMethodChannel.invokeMethod<bool>(
    'openAndroidIntent',
    {
      'action': action,
      'appSpecific': true,
    },
  );

  return success ?? false;
}