fetchAdvertisingId method
Implementation
Future<String?> fetchAdvertisingId() async {
if (_idfa != null) return _idfa;
try {
return _idfa = await AdvertisingId.id();
} on Object catch (e, stack) {
logger.error(
'Failed to get advertising id',
error: e,
stackTrace: stack,
);
}
return null;
}