age_range_signals
0.10.1, released 6 weeks ago by povhe.si
Flutter plugin for age verification using Google Play Age Signals and Apple DeclaredAgeRange APIs.
What it does
It provides a cross-platform API for age verification and age range checking. It interfaces with Google Play Age Signals on Android and Apple's DeclaredAgeRange API on iOS.
AI-written summary of version 0.10.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to verify user age for compliance with regional age restriction laws.
- Your app requires age gating for adult content on Android and iOS.
Skip it when
- You are targeting older iOS versions below 26.0 or Android versions below API 23.
- You want self-reported ages without relying on platform-level verification APIs.
Strengths
- Unified status model across both Android and iOS platforms.
- Supports regional eligibility checks and regulatory feature detection on iOS.
- Typed exceptions for all failure modes.
Weaknesses
- Requires platform-specific capabilities (Declared Age Range entitlement on iOS, specific Google Play versions on Android).
- Availability depends heavily on regional rollouts and store-level support.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires enabling the Declared Age Range capability on your Apple ID and adding the entitlement to Runner.entitlements on iOS. Android requires minSdk 23+ and a Google Play Store environment.
import 'package:age_range_signals/age_range_signals.dart';
await AgeRangeSignals.instance.initialize(ageGates: [18]);
final access = await AgeRangeSignals.instance.requestAgeSignalsAccess();
if (access == AgeSignalsAccessStatus.shared) {
final result = await AgeRangeSignals.instance.checkAgeSignals();
if (result.status == AgeSignalsStatus.verified) {
// Grant access
}
}Alternatives
Packages that do the same job and could replace age_range_signals.
- launch_app_store
Flutter plugin to leave reviews and ratings in Google Play Store and Apple App Store.
71Compare - google_api_availability
Check the availability of Google Play services on an Android device.
88Compare - health
Wrapper for Apple's HealthKit and Google's Health Connect.
91Compare - play_install_referrer
Flutter plugin to fetch Android Play Store install referrer details
81Compare
Works with
Packages commonly used together with age_range_signals: ones it builds on, ones built on it, and its own family.