getDataCenterPushUrl function
Retrieves the data center push URL from the storage configuration. Throws an exception if the data center push URL is not defined.
Implementation
Future<String> getDataCenterPushUrl() async {
final config = await getStorageItem(key: 'sgm_config');
final dataCenterPushUrl = config?['dataCenterPushUrl'];
if (dataCenterPushUrl == null || dataCenterPushUrl == '') {
throw Exception('Error: Data Center Push Url is not defined.');
}
return dataCenterPushUrl;
}