fetchPushConfigsFromServer method
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;
}
}