fetchPushConfigsFromServer method
~english Gets the push configurations from the server. ~end
~chinese 从服务器获取推送设置信息。 ~end
Implementation
Future<ChatPushConfigs> fetchPushConfigsFromServer() async {
Map result = await PushChannel.invokeMethod(
ChatMethodKeys.getImPushConfigFromServer);
try {
ChatError.hasErrorFromResult(result);
return ChatPushConfigs.fromJson(
result[ChatMethodKeys.getImPushConfigFromServer]);
} on ChatError catch (e) {
throw e;
}
}