fetchPushConfigsFromServer method
Gets the push configurations from the server.
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;
}
}