requestTrackingAuthorization static method
Implementation
static Future<AdmostTrackingAuthorizationStatus>
requestTrackingAuthorization() async {
if (Platform.isIOS) {
final int? status =
await (_channel.invokeMethod<int?>('requestTrackingAuthorization'));
return AdmostTrackingAuthorizationStatus.values[status ?? 0];
}
return AdmostTrackingAuthorizationStatus.authorized;
}