For testing permission response we can use the sandbox account
However, when testing permission requests using the AskCenter API, none of the ask API works for me in xcode 26.2 rc and iOS 26.2 rc.
For SignificantAppUpdateTopic, I got errors like "The user is in a region that does not support this type of ask" in the console log, but I've already set my billing address to Texas.
For CommunicationTopic, the console shows several XPC-related errors, and I’m not sure which of them are relevant.
Both of them show an alert view of "Can't ask, An unknown error occurred"
Can someone help to guide us how to test the request flow?
Thanks
Hi @chou_ios,
Where legally required, you must check the age of the people using your app, starting with new Apple Accounts created in Texas on or after January 1, 2026, which has obligations only for iOS and iPadOS apps. To learn more, see Next steps for apps distributed in Texas.
To test content revocation in Sandbox on iOS and iPadOS 26.2 and later, please see the documentation below:
Testing Age Assurance in Sandbox
https://developer.apple.com/documentation/storekit/testing-age-assurance-in-sandbox
Navigate to your Sandbox Apple Account settings
Access your Sandbox Apple Account settings to configure Age Assurance test scenarios:
- Confirm that you have enabled Developer Mode. If you haven’t, see Enabling Developer Mode on a device
- Open Settings and select Developer.
- Scroll down to Sandbox Apple Account.
- If you’re not logged in to an account, select Sign In to authenticate yourself.
- Once you’re signed in, select your Apple Account.
Test Age Assurance on device
Test various age range scenarios on the Sandbox Apple Account page in iOS or iPadOS by following these steps:
- Follow the steps from Navigate to your Sandbox Apple Account settings (above).
- In the Sandbox Apple Account modal, select Manage.
- Scroll down and select Age Assurance.
Test app consent revocation
To test the notification when a parent or guardian revokes access to your app on behalf of their child, follow these steps:
- Follow the steps from Navigate to your Sandbox Apple Account settings (above).
- In the Sandbox Apple Account modal, select Manage.
- Scroll down and select Revoke App Consent.
- Enter your app’s Bundle ID (for example, com.example.bundle).
- Tap Revoke Consent to simulate the revocation.
- Confirm that the system displays “Notification Triggered” with the message “A notification will be sent to the developer server soon.”
Cheers,
Paris X Pinkney | WWDR | DTS Engineer