configureNotificationPresentationOption function
这个方法仅针对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});
}