advertising_id_flutter
1.1.0, released 2 months ago by openflutter.dev
Access advertising ID, limit ad tracking status, and authorization status on mobile platforms.
What it does
A Flutter plugin to access the device advertising ID on Android, iOS, macOS, and HarmonyOS. It also allows retrieving whether ad tracking is limited or checking authorization status.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to read the device advertising ID for analytics or attribution.
- You need to check if user ad tracking is limited or authorized.
Skip it when
- You do not use advertising or tracking identifiers in your application.
- You require verified native build support for HarmonyOS, which is still pending.
Strengths
- Supports multiple platforms including Android, iOS, macOS, and HarmonyOS.
- Provides simple asynchronous APIs with exception handling.
Weaknesses
- HarmonyOS native build and device validation are still pending.
- Authorization status checking is primarily for iOS and returns default values on Android.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires standard platform-specific configurations for advertising identifiers (such as AdSupport framework on iOS or permissions on HarmonyOS).
String? advertisingId;
try {
advertisingId = await AdvertisingId().getAdvertisingId(true);
} on PlatformException {
advertisingId = null;
}Alternatives
Packages that do the same job and could replace advertising_id_flutter.
- jni_flutter
Access Flutter Android APIs from Dart.
87Compare - shizuku_api
Flutter plugin to run shell commands via Shizuku without root
69Compare
Works with
Packages commonly used together with advertising_id_flutter: ones it builds on, ones built on it, and its own family.