fetchSilentModeForAll method
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.
Implementation
Future<ChatSilentModeResult> fetchSilentModeForAll() async {
try {
Map result = await platform_interface.Client.instance.pushManager
.callNativeMethod(ChatMethodKeys.fetchSilentModeForAll);
ChatError.hasErrorFromResult(result);
return ChatSilentModeResult.fromJson(
result[ChatMethodKeys.fetchSilentModeForAll],
);
} catch (e) {
rethrow;
}
}