DEV Community

Mingke Tu
Mingke Tu

Posted on

Notes from shipping v0.1.22 of my free Android app blocker: an early warning, a WeChat mini program limit, and sleep sounds I still need to test

I build Ripple, a free app blocker for Android and iPhone. No ads, no account, settings stay on the phone. Most people who install it fall into two groups: adults who want to stop opening short video apps at night, and parents who set it up on a child's phone and keep the passcode. This post is a short log of what went into the Android release v0.1.22 and what I have not verified yet.

A countdown before the block

Getting blocked in the middle of a video felt abrupt, even to me. So 10, 20 or 30 seconds before a limit starts, a small countdown pill now shows at the top of the screen. It only warns. The block still starts on time, because a warning that can be snoozed turns into another way around the limit. It is on by default at 20 seconds and can be changed in Settings under "Wait a moment".

Limiting WeChat mini programs without blocking WeChat

In China a lot of games and shopping live inside WeChat mini programs, so blocking the whole app would also block family chats and payments. The new "WeChat · Mini Programs" option under app limits is off by default. You can block mini programs outright or allow a few minutes first. All mini programs share one allowance, and when time is up you land back on the WeChat main screen. On OPPO phones some mini program screens have names ending in two digits, which my first version missed, so that case is handled now.

Sleep sounds on the block screen

For overnight schedules the block screen can show a sleep card with rain, ocean, fire and white noise, plus a slow breathing guide with 4-7-8 and 4-4-6 rhythms. Tapping the card goes to the home screen first and then opens the sleep page, so pressing back never exposes the blocked app. When playback ends or is paused, the app releases audio focus and stops its background service.

What I have not tested on a real phone yet: long playback with the screen off, incoming calls, and unplugging headphones. If you try it and something breaks, I would like to know.

Smaller changes

  • The wait before you can relax a rule can now be 15 minutes, 30 minutes, 1 hour or 2 hours. A passcode someone else keeps still works as the other way out.
  • A parent mode hides Ripple from recent tasks while it runs. Turning it off goes through the same wait or passcode.
  • On OPPO, a block screen shrunk into a floating window used to count as blocked. Now it pops back to full screen. The floating window itself still has to be closed by hand.

What it does not do

There is no remote management, so a parent changes rules on the child's device. The iPhone version is still v0.1.5 (iOS 16+) and is much smaller: schedule blocking, preventing app deletion, clock change protection and a passcode. None of the features above are on iPhone. I mostly test on one OPPO phone and emulators, and this build was not retested on a Xiaomi phone.

Release notes: https://github.com/ripplefocus/ripplefocus.github.io/releases/latest
Android APK: https://ripplefocus.github.io/dl/ripple-latest.apk
Website: https://ripplefocus.github.io/

Top comments (2)

Collapse
 
userxnom profile image
Abdullah Naseer •

The 20-second default countdown stood out to me — long enough to catch an accidental open, but short enough that it doesn't feel like a punishment. The WeChat mini program limit is a good catch too; that's the kind of edge case only real usage surfaces. For the sleep sounds, when you test long playback with the screen off, are you planning to check whether Android's battery optimization pauses the audio, or is that already handled in how the playback is set up?

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

Free blocker, no ads, and a write-up of what broke anyway. The WeChat mini program limit is the sort of platform edge most posts never mention.