I’m integrating version 0.0.4 of the Google Play Age Signals API.
The documentation says that requestAgeSignalsAccess() may display a Google Play–provided prompt for an unsupervised user when age sharing is optional and their setting is Ask before sharing:
val request = AgeSignalsAccessRequest.builder()
.setActivity(activity)
.build()
ageSignalsManager.requestAgeSignalsAccess(request)
.addOnSuccessListener { result ->
Log.d("AgeSignals", "status=${result.ageSignalsStatus()}")
}
.addOnFailureListener { exception ->
Log.e("AgeSignals", "Request failed", exception)
}
I have not been able to reproduce that prompt.
What I have tried:
Used an unsupervised adult Google account.
Tested with an account in a state where age sharing is not mandatory.
Tested with a Texas account that predates the new law.
In each case, the API returned AgeSignalsStatus.NOT_SHARED without displaying a prompt.
Google’s age-range-sharing documentation says the setting should be under:
> Play Store → Settings → Family → Age range sharing
However, that setting does not appear for any of the accounts or devices I tested.
FakeAgeSignalsManager allows me to simulate SHARED, NOT_SHARED, and VERIFICATION_REQUIRED, but it does not interact with Google Play and therefore cannot test the actual Play-provided UI.
Is there a supported way to force the Ask before sharing state for testing?
If the Age range sharing setting is absent from the Play Store, does that mean the feature has not yet been enabled for that account, or are there additional eligibility requirements that are not documented? This is probably the key question that I want to figure out.