requestPermissions method

Future<bool> requestPermissions(
  1. {bool sound,
  2. bool alert,
  3. bool badge}
)

Requests the specified permission(s) from user and returns current permission status.

Implementation

Future<bool> requestPermissions({
  bool sound,
  bool alert,
  bool badge,
}) =>
    _channel.invokeMethod<bool>('requestPermissions', <String, bool>{
      'sound': sound,
      'alert': alert,
      'badge': badge,
    });