requestPermission method

Future<bool> requestPermission({
  1. bool badge = true,
  2. bool sound = true,
  3. bool alert = true,
  4. bool carPlay = true,
  5. bool criticalAlert = false,
  6. bool provisional = false,
  7. bool providesAppNotificationSettings = false,
  8. bool announcement = true,
})

For more information, see the underlying Apple documentation.

Implementation

Future<bool> requestPermission({
  bool badge = true,
  bool sound = true,
  bool alert = true,
  bool carPlay = true,
  bool criticalAlert = false,
  bool provisional = false,
  bool providesAppNotificationSettings = false,
  bool announcement = true,
}) {
  return _pushHostApi.requestPermission(
    badge,
    sound,
    alert,
    carPlay,
    criticalAlert,
    provisional,
    providesAppNotificationSettings,
    announcement,
  );
}