requestATT static method

Future<num> requestATT()

Implementation

static Future<num> requestATT() async {
  if (kIsWeb || !Platform.isIOS) return -1;
  final time = Stopwatch()..start();
  final res = await Adjust.requestAppTrackingAuthorization();
  time.stop();
  DSMetrica.reportEvent('AppTrackingTransparency', attributes: {
    'att_result': '$res',
    'att_time_delta_sec': time.elapsed.inSeconds,
    'att_time_delta_ms': time.elapsedMilliseconds,
  });
  return res;
}