advertising_identifier

Flutter plugin for Advertising Identifier.

try {
  final AdvertisingIdInfo info =
      await AdvertisingIdManager.getAdvertisingIdInfo();
  print(json.encode(info));
} on PlatformException catch (e) {
  print(e);
}

Libraries

advertising_identifier
advertising_identifier_platform_interface