setShowForegroundNotificationsOniOS method
- bool showForegroundNotifications
Toggles whether iOS should show notifications when the app is in foreground or not.
Note: This requires BatchUNUserNotificationCenterDelegate to be set as your UNUserNotificationCenterDelegate when performing the native integration
Default: false
Implementation
void setShowForegroundNotificationsOniOS(bool showForegroundNotifications) {
_channel.invokeMethod('push.iOS.setShowForegroundNotifications',
{'enabled': showForegroundNotifications});
}