setShowNotifications method

Future<void> setShowNotifications(
  1. bool showNotifications
)

Android only. Controls whether Batch should display notifications.

Implementation

Future<void> setShowNotifications(bool showNotifications) async {
  if (!_isAndroidPlatform) {
    return;
  }
  await _channel.invokeMethod('push.setShowNotifications',
      {'enabled': showNotifications});
}