My New App (WaterBlock)
Today, I finally finished building my new app WaterBlock. (Ignore the horrible naming, I couldnt think of anything else)
WaterBlock is a app where it will block your screen time if you do not drink enough water. This idea came from my own personal experience where I do not drink water frequently and always end up with a sore throat. How did I think of implementing screen time? Well, I thought that phones are what we use everyday in our lives. So, why not block the usage of phone if you don't drink water.
Challenges
I faced many challenges when building this app. It was my first time using the Screen Time Package in my application. I spent a lot of time learning tutorials and got a lot of errors when building the application. The package I used was Family Controls.
At first, I though that making this app would be very simple. Just block the phone all the time, after drinking water, unlock the applications for a few minutes and automatically lock it back. After many hours, I couldn't figure out how to automatically turn the shield back on. Even until now, I still don't know (If you guys know, please reach out to me, Im helpless).
Therefore, I decided to keep it simple and used Live Activities. So when time is up, you will be prompted to open the app to turn back on the shield.
What I learned
- Family Controls
- Live Activities
- How to apply for Family Controls (Distribution)
Thanks for reading! If you like what I am doing, subscribe to more of my posts and (maybe) get early access to my new applications.
Member discussion