configureNotificationPresentationOption function

Future configureNotificationPresentationOption({
  1. bool none = false,
  2. bool sound = true,
  3. bool alert = true,
  4. bool badge = true,
})

这个方法仅针对iOS 设置推送通知显示方式 completionHandler(UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionBadge);

Implementation

Future configureNotificationPresentationOption(
    {bool none: false,
    bool sound: true,
    bool alert: true,
    bool badge: true}) async {
  return _channel.invokeMethod("configureNotificationPresentationOption",
      {"none": none, "sound": sound, "alert": alert, "badge": badge});
}