We're building ReClaim , a minimalist Android launcher that's on Google Play . An earlier post covered blocking websites by reading only the address bar : find the bar by view id, tell typing from visiting, and move a tab off a site. This post is about what happens after the bar matches a hidden site, where the user gets a challenge before the page opens. That part turned out to be harder than the match.
A hidden site is not a block. The user can pass a challenge (the same kind we use for unlock challenges ) and then use the site for that visit. So the gate has three jobs: keep the page unusable until the challenge is up, make sure Cancel never becomes a pass, and handle the case where the address bar disappears because a video went fullscreen.
All of this is new in the two most recent app commits on our master branch, and none of it is in the Play build yet. The live listing still shows version 0.6.6.0.1, and the repo is at 0.6.7.3.1. Stack: Kotlin, Jetpack Compose, Hilt, an AccessibilityService .…