admob_consent is a Flutter package that wraps Google's User Messaging Platform (UMP) SDK, enabling developers to implement consent collection for privacy regulations like GDPR and Apple's ATT on both Android and iOS. It simplifies compliance by providing a straightforward interface to display consent dialogs and manage user preferences. The package handles the integration with UMP’s native SDKs, ensuring proper adherence to legal requirements for personalized advertising. It is designed for apps that serve ads through AdMob or other Google ad services.
Use cases
- Complying with GDPR in EU regions
- Implementing Apple's App Tracking Transparency (ATT)
- Displaying consent forms before showing personalized ads
- Managing user consent preferences across platforms
- Integrating privacy compliance into AdMob-based apps
Key features
- Simple integration with Google UMP SDK
- Supports GDPR and ATT compliance
- Cross-platform support for Android and iOS
- Handles consent state persistence
- Provides callback for consent status updates
Suitable for
- Apps targeting users in the EU or US
- Developers using AdMob with personalized ads
- Projects requiring legal compliance with privacy laws
- Flutter apps needing automated consent management
- Mobile app publishers prioritizing user privacy
Considerations
- Requires correct configuration of Google UMP settings
- Must be used alongside AdMob or other Google ad services
- Initial setup involves Google Play Console and Apple Developer Portal
- Consent flow must be tested on real devices
- May require updates when UMP SDK changes occur