Skip to content

Android Error -1 when using AgeRange #2

@yvant

Description

@yvant

Hi,
Here's my code to use AgeRange:

if (AgeRange.isSupported)
{
	var request:AgeRangeRequest = new AgeRangeRequest().setAgeGates(16);
	AgeRange.instance.requestAgeRange(
		request,
		function ( result:AgeRangeResult ):void
		{
			//send report if denied
		},
		function ( error:Error ):void
		{
			trace( "ageRequest ERROR: " + error.message );
		}
	);
}
else
{
	//startGameNormally();
	trace("age signals : start normally");
}

Using that code, I'm getting this error on Android in debug mode:

Error #2044: Unhandled error:. text=-1: Age Signals Error: -1
ageRequest ERROR: -1: Age Signals Error: -1

I'm using the latest update of this ANE. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions