updateMixNotification static method
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;
}