
Day 17: I Built Habit Reminders That Work Offline (The Debugging Hell Was Worth It)
Day 17/30: Service Worker Debugging Hell & Victory 🔥 TL;DR Built offline reminders for MicroHabit AI Spent 6 hours debugging Service Worker Fixed repository path issues Unlocked calendar for free users 25 users, 8 countries, high engagement The Problem Users wanted reminders. Easy, right? Wrong. Browser reminders only work when app is open. Close the app = no notifications. I needed Service Workers. The Journey Hour 1: "This should be easy" Wrote service-worker.js. Deployed. Didn't work. Hour 2-3: 404 Errors Service Worker not found. Path issues. Repository name problems. Hour 4-5: "Illegal Constructor" PWAs can't use new Notification() Must use registration.showNotification() Who knew?! Hour 6: Victory Changed notification method. Fixed paths. IT WORKS! 🎉 What I Learned 1. Service Workers are hard But worth it for offline functionality. 2. PWA != Website Different APIs, different rules. 3. User education matters Added tips: "Keep app in background" Not perfect, but transparent. 4. Deb
Continue reading on Dev.to JavaScript
Opens in a new tab

![[Learning notes and hw] getting started with R-cnn: Manually implementing Intersection over Union (IoU)](/_next/image?url=https%3A%2F%2Fmedia2.dev.to%2Fdynamic%2Fimage%2Fwidth%3D800%252Cheight%3D%252Cfit%3Dscale-down%252Cgravity%3Dauto%252Cformat%3Dauto%2Fhttps%253A%252F%252Fdev-to-uploads.s3.amazonaws.com%252Fuploads%252Farticles%252Favit2emoxc0g68e5ltqj.jpg&w=1200&q=75)

