iOSForegroundPresentationOptions method
Implementation
@override
Future iOSForegroundPresentationOptions(List<iOSNotificationPresentationOption> options) async {
// Skip other platforms. Do not show error
if (!Platform.isIOS) return;
try {
return await channel.invokeMethod('iOSForegroundPresentationOptions', {
'options': options.map((option) => option.value).toList(),
});
} catch (error) {
return [];
}
}