fetchPushConfigsFromServer method

Future<EMPushConfigs> fetchPushConfigsFromServer()

Implementation

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