On this page
Free trials that quietly turn into paid plans are a classic way to lose money as a student. This brief describes a tracker where you type in each subscription yourself, see what the month really costs and get a reminder two days before a renewal or trial ends. There is no bank linking and no reading of emails: the app only knows what you enter. Android is the natural first build because a Glance widget and notification channels suit it well; the iPhone version uses the same design and needs a Mac with Xcode. The proof is one reminder firing at the expected time for a test subscription.
Screens
- Upcoming: Show the next renewals in date order with days remaining
- Add subscription: Enter name, price, currency, billing cycle and next charge date
- Detail: Edit, pause, mark cancelled and see past renewal dates
- Totals: Monthly and yearly spend by category with trials shown separately
- Settings: Choose reminder lead time, reminder hour and default currency
Data model
| Table | Key fields | Purpose |
|---|---|---|
| subscriptions | id (uuid), name (text), amount_minor (int), currency (text), cycle (text), next_charge_on (date), is_trial (bool), status (text) | Each recurring charge the user tracks, stored in minor units |
| renewals | id (uuid), subscription_id (uuid), charged_on (date), amount_minor (int) | History of dates the user confirmed as charged |
| reminders | id (uuid), subscription_id (uuid), fire_at (timestamptz), scheduled (bool) | The planned alert for the next charge, rebuilt when dates change |
Keep the first version on the device: Room or SwiftData holds subscriptions, and money is stored as integer minor units with an explicit currency so totals never drift through floating point rounding. Converting between currencies is out of scope unless the owner picks a rate source. If cross-device sync becomes useful, connect your own Supabase with row-level security on user_id; nothing about subscriptions should be visible to another account.
Native features
Reminders are the whole point, so they must be honest about precision. Android 12 and later restrict exact alarms, and a two-days-before reminder rarely needs minute accuracy, so an inexact alarm or WorkManager job at the chosen hour is the safer default. Ask before requesting exact alarm permission and explain why.
| Feature | Android (Kotlin) | iPhone (SwiftUI) | Notes |
|---|---|---|---|
| Renewal reminder | AlarmManager setAndAllowWhileIdle or WorkManager; SCHEDULE_EXACT_ALARM only if the owner insists | UNCalendarNotificationTrigger scheduled per subscription | Recompute after every edit, reboot and time zone change. |
| Home screen total | Glance app widget showing next charge and monthly total | WidgetKit widget with a timeline at midnight | Widgets read saved data; they never calculate a different total. |
| Notification permission | POST_NOTIFICATIONS runtime request on Android 13+ | UNUserNotificationCenter requestAuthorization | If denied, keep the Upcoming list prominent and say reminders are off. |
Android notes (Kotlin and Jetpack Compose)
Use a LazyColumn of upcoming charges keyed by subscription ID and a Material 3 date picker for the next charge date. When the user saves, a repository updates the row and reschedules exactly one reminder for it, cancelling any previous PendingIntent with the same request code.
- Register a BOOT_COMPLETED receiver and a TIME_ZONE_CHANGED receiver that rebuild pending reminders from Room, because alarms do not survive a restart.
- Advance next_charge_on by the billing cycle only when the user confirms a charge or the date passes, and handle monthly renewals on the 31st by moving to the last day of shorter months.
- On a real Android phone, add a test subscription charging in two days and three minutes with the reminder hour set to now, reboot the phone and confirm the notification still arrives once.
iPhone notes (Swift and SwiftUI)
Group subscriptions in a List by this week, this month and later, using SwiftData queries sorted by next charge date. Present add and edit forms in a sheet with a currency picker and a cycle picker covering weekly, monthly and yearly.
- Use one notification identifier per subscription so rescheduling replaces the old alert instead of stacking duplicates; iOS keeps at most 64 pending local notifications per app, so schedule only the nearest renewals.
- Reload the widget timeline after any save with WidgetCenter so the home screen total matches the Totals screen.
- On a physical iPhone, deny notifications, add a trial ending tomorrow and confirm the Upcoming screen flags it clearly. Then enable notifications in Settings and verify the reminder is scheduled on return.
Copy-paste prompt
Make an app that pings me 2 days before Netflix, Spotify or any free trial charges me, and shows what all my subscriptions really cost per month. Build a native Android app with Upcoming, Add subscription, Detail, Totals and Settings. I type every subscription myself: no bank linking, no email scanning. Store amounts as integer minor units with a currency, plus billing cycle, next charge date and whether it is a free trial. Schedule one local reminder per subscription at my chosen hour, two days before the charge by default, and rebuild reminders after edits, reboot and time zone changes. Ask me before requesting exact alarm permission. Add a home screen widget with the next charge and the monthly total. Show empty, loading and notification-denied states. For acceptance, add a test subscription that renews in two days, confirm the reminder fires once at the right hour, mark it charged, and check that the next charge date and monthly total update correctly after reopening the app.
Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.
Acceptance test
- Add a monthly subscription renewing on the 31st and confirm the following charge date moves to the last day of a shorter month.
- Add a free trial ending in two days and verify it appears in Upcoming with a trial label and its own reminder.
- Change the reminder hour in Settings and confirm every pending reminder is rescheduled, with no duplicates.
- Reboot the phone or change its time zone, then check the reminder still fires once at the intended local time.
- Deny notification permission and confirm the app says reminders are off while the list and totals keep working.
Totals deserve their own check: add one weekly, one monthly and one yearly subscription in the same currency and compare the monthly figure with a hand calculation using the rule the owner chose for weeks per month. Cancelled subscriptions should drop out of totals but stay in history, and a paused one should not trigger a reminder until it is resumed.
Frequently asked questions
Can it find my subscriptions automatically?
No. This brief deliberately avoids bank connections and email access. You add each subscription yourself, which keeps the app simple and your financial data on your phone.
Why might a reminder arrive a few minutes late?
Android batches inexact alarms to save battery. A two-day heads up does not need to be exact to the minute, so the default trades precision for not asking for a sensitive permission.
Does it cancel subscriptions for me?
No. The app reminds you and can store a link to the provider's account page, but cancelling still happens in that service.
Build this blueprint
The blueprint prompt, ready for your platform. Edit anything before you send it.
Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.