enableNotificationForceForegroundAware static method

Future<bool> enableNotificationForceForegroundAware()

Enables force to avoid displaying notification when the app is open Instead only listeners will be called

Implementation

static Future<bool> enableNotificationForceForegroundAware() async {
  if(!Platform.isAndroid) return false;
  return await _channel.invokeMethod("Pushe.enableForceForegroundAware") ?? false;
}