getMixNotification static method

Future<bool> getMixNotification()

Implementation

static Future<bool> getMixNotification() async {
  if (Platform.isAndroid) {
    var res =
        await NimCore.instance.settingsService.isPushServiceEnabledAndroid();
    if (res.isSuccess) {
      return res.data!;
    }
  } else if (Platform.isIOS) {
    var config =
        await NimCore.instance.settingsService.getPushNoDisturbConfig();
    if (config.isSuccess) {
      return !config.data!.enable;
    }
  }
  return false;
}