Refunds Shipping

We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

Mailblocks phone notification blocker

By Ben Everard. Posted

This article was originally published as part of HackSpace magazine, which has since been incorporated into Raspberry Pi Official Magazine.

Mailblocks phone notification blocker

Guy Dupont has a problem: he keeps making brilliant creations that pique the interest of the internet. Every time he makes something interesting on the internet, his phone starts blowing up with notifications. What to do?

Well, in a bit of a meta-twist, he decided to make yet another brilliant device, only this time, one that would block notifications until such a time as he’s ready for them. This is the Mailblocks. It’s based on the old-fashioned mailboxes of North America, in the days when you’d have to get up and move your body to receive paper messages once a day from the outside world, and it means that Guy’s Android phone doesn’t bug him with updates unless he chooses to accept them.

Advertisement

Mighty Projects – 1GB computer

or free PDF download

Guy uses a Raspberry Pi acting as a Wi-Fi router on his home network, running a custom DNS server that looks for IP addresses associated with push notifications, and redirects the DNS requests to nonsense IP addresses.

The flag raises when you’ve got mail; it’s activated by a small servo, powered by an Adafruit MiniBoost 5 V
The flag raises when you’ve got mail; it’s activated by a small servo, powered by an Adafruit MiniBoost 5 V

That’s the blocking part. So far, so good: now, in order to pick up notifications, you need to put it into the mailbox. Inside the mailbox is a mechanical switch that closes when the phone is inserted. The switch is connected to a Feather S3 board, from Unexpected Maker, that tells the Raspberry Pi to stop the monkey business with DNS. The Wi-Fi network reboots and, when the phone looks again for the Google servers, all the previously blocked notifications come through. Congratulations: you are now in charge of your phone, rather than the other way around.

Ben Everard photo

Ben is the Editor of HackSpace magazine. When not wrangling words, he enjoys cycling, gardening, and attempting to identify wild mushrooms.

Subscribe to Raspberry Pi Official Magazine

Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.

Subscribe