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)))
        .isSuccess;
  }
  return false;
}