updateMixNotification static method

Future<bool> updateMixNotification(
  1. bool value
)

Implementation

static Future<bool> updateMixNotification(bool value) async {
  if (Platform.isAndroid) {
    return (await NimCore.instance.settingsService
            .enablePushServiceAndroid(value))
        .isSuccess;
  } else if (Platform.isIOS) {
    return (await NimCore.instance.settingsService.setPushNoDisturbConfig(
            NIMPushNoDisturbConfig(
                enable: !value, startTime: '00:00', endTime: '23:59')))
        .isSuccess;
  }
  return false;
}