Inspiration
As a junior within high school, studying for standardized tests, such as the SAT and PSAT should take up most of my time and have; however, sometimes I feel that I get too distracted by one singular device that is constantly around me: my iPhone.
This led me to another question: do others within my high school experience the same issues? So, I conducted a Google Form survey featuring 83 participants within my high school, prompting them to answer questions such as "How much time do you spend on average on your phone?" or "Do you often find yourself spending time on your phone even while studying for standardized tests?" After finding that 68.7% spend 2 hours or more on social media on their phone and 73.5% were generally distracted by their phones while studying, I knew I had to create Earnly, a mobile application that would use Apple Screen Time tracking technology to limit and force students to study after using up an allocated amount of screen time to then, in return, earn more of it.
How I built it
I developed Earnly as a native iOS application using Swift and SwiftUI, integrating Apple's Screen Time API to monitor application usage and restrict distracting applications once a student exceeds their allocated screen time.
To make studying more effective, I developed an adaptive learning algorithm that analyzes a student's previous answers, identifies academic weaknesses, and personalizes future practice sessions based on individual performance. I also integrated a Groq-powered AI inference pipeline hosted on Vercel, utilizing Upstash Redis for rate limiting and Apple App Attest for secure authentication.
Earnly currently contains 912 practice questions across ten standardized examinations, including the SAT, PSAT, ACT, and seven AP subjects. Students can also proactively complete practice questions to earn and bank additional screen time.
Challenges I ran into
One of the most significant challenges was integrating Apple's Screen Time API. Unlike traditional iOS applications, Earnly requires multiple application extensions that must communicate with one another to monitor usage, enforce restrictions, and unlock applications.
Another challenge was ensuring that screen-time monitoring and earned rewards persisted across application sessions and multiple days without requiring students to repeatedly configure the application.
Additionally, developing a reliable AI personalization system required me to ensure that generated mathematical questions were accurate, academically relevant, and unambiguous. I addressed this through deterministic mathematical validation and an offline question bank that allows students to continue practicing even when AI services are unavailable.
Finally, obtaining Apple's distribution entitlements, resolving code-signing issues, and successfully distributing Earnly through TestFlight presented several technical challenges.
Accomplishments that I'm proud of
I am particularly proud of transforming a problem that I personally experience as a high school student into a functioning mobile application.
Beyond creating a prototype, I successfully distributed Earnly through Apple's TestFlight platform, implemented operating-system-level application restrictions, and developed an adaptive educational system containing 912 questions across ten standardized examinations.
I am also proud of incorporating feedback from 83 students at my high school into the development process, ensuring that Earnly addresses a problem experienced by students beyond myself.
What I learned
Through developing Earnly, I gained experience in native iOS development, operating-system-level application integrations, adaptive learning algorithms, secure backend development, and AI inference pipelines.
I also learned that integrating artificial intelligence into an educational application requires more than simply connecting to an AI model. Accuracy, privacy, security, and reliability are equally important, particularly when developing technology intended for students.
Most importantly, I learned how to approach software development from both an engineering and entrepreneurial perspective by identifying a problem, validating it through market research, developing a solution, and distributing that solution to potential users.
What's next for Earnly
My next goal is to expand Earnly's question bank to approximately 4,000 questions while introducing additional AP subjects and further improving its adaptive learning capabilities.
I also plan to conduct more extensive testing with high school students, obtain feedback from educators, and evaluate whether Earnly effectively reduces digital distractions and improves study habits over time. Allowing parents to also download the application and control their child's limits remotely is another consideration that I want to implement.
Ultimately, I hope to release Earnly publicly on the App Store and help students transform their digital distractions into opportunities for academic growth.
Built With
- apple-devicecheck
- apple-screen-time
- groq
- javascript
- node.js
- redis
- swift
- swiftui
- testflight
- typescript
- upstash
- vercel
- xcode