fetchPushConfigsFromServer method

Future<ChatPushConfigs> fetchPushConfigsFromServer()

Implementation

Future<ChatPushConfigs> fetchPushConfigsFromServer() async {
  try {
    Map result = await platform_interface.Client.instance.pushManager
        .callNativeMethod(ChatMethodKeys.getImPushConfigFromServer);
    ChatError.hasErrorFromResult(result);
    return ChatPushConfigs.fromJson(
        result[ChatMethodKeys.getImPushConfigFromServer]);
  } catch (e) {
    rethrow;
  }
}