fetchSilentModeForAll method
~english Gets the offline push settings at the app level for the current login user.
Return The offline push settings settings.
Throws A description of the exception. See ChatError. ~end
~chinese 获取当前登录用户的 app 级别的推送通知设置。
Return 推送通知设置。
Throws 如果有异常会在此抛出,包括错误码和错误信息,详见 ChatError。 ~end
Implementation
Future<ChatSilentModeResult> fetchSilentModeForAll() async {
Map result =
await PushChannel.invokeMethod(ChatMethodKeys.fetchSilentModeForAll);
try {
ChatError.hasErrorFromResult(result);
return ChatSilentModeResult.fromJson(
result[ChatMethodKeys.fetchSilentModeForAll],
);
} on ChatError catch (e) {
throw e;
}
}