Overview
The advertising_id package is a Flutter plugin that provides access to the device's advertising ID on both Android and iOS platforms. It wraps native APIs—ASIdentifierManager.advertisingIdentifier on iOS and the Android Advertising ID—enabling apps to retrieve unique identifiers used for targeted advertising. This allows developers to comply with platform-specific privacy guidelines while supporting ad personalization and analytics. The plugin is lightweight and integrates seamlessly into Flutter applications.
Use cases
- Targeted advertising
- User analytics
- Ad attribution
- Cross-app tracking
Key features
- Cross-platform support
- Privacy-compliant
- Simple API
- Native integration
Suitable for
- Ad-serving apps
- Analytics tools
- Marketing platforms
Considerations
- Requires user consent on iOS
- Depends on platform permissions
- Not available on all devices
- May be restricted by privacy settings