Skip to content
Amine Benlaroui
All projects

iOS and Android app, personal project

Qiyam

On the App Store since 27 April 2026

A Quran revision app that schedules every verse separately, instead of cutting the text into equal portions.

Downloads
577, in 67 countries
Stack
Swift, SwiftUI, Kotlin, Supabase
Automated tests
476

App Storeqiyamapp.com

The Memory Map: where each surah stands, and what is coming
  • One due date per verseSpaced repetition, from the rating you give yourself

  • A smoothed loadThe schedule is fixed when you rate

  • Offline first6,236 verses in the app, the local database is the truth

  • Tested over timeFictional users aged over months

The problem

The usual method cuts memorised text into equal portions and revises one a day. A verse learnt ten years ago therefore gets as much time as a verse learnt last week. I wanted revision time to follow how fragile each verse actually is.

What I built

  • Every verse has its own due date, computed by spaced repetition (SM-2) from the rating you give yourself after a quiz. A solid verse moves away, a shaky one comes back quickly.
  • A second mechanism groups due verses into short passages from the same surah, up to 150 words, and spreads the load across days. Keeping the two apart makes it possible to tune the daily load without touching the learning rhythm.
  • The schedule is smoothed when you rate, then frozen. The ideal due date is stored separately. Without that, a schedule recomputed every day keeps shifting the same verses around.
  • Offline first: all 6,236 verses ship inside the app and the local database (SQLite) is the source of truth. Sync with Supabase came later, as a backup; a Postgres trigger rejects stale writes and every row belongs to its owner only.
  • A simulation bench ages cohorts of fictional users over months, through the real scheduling chain, and checks that nothing drifts. With the unit tests: 378 Swift tests and 98 Kotlin tests.

Android: a shared core, native screens

For Android, I did not rewrite the rules by hand. Spaced repetition, scheduling, streaks and reminders live in a Kotlin Multiplatform core; the screens are native, in Jetpack Compose.

The contract between the two apps is written in the repository: what travels to Supabase, the sync scenarios, and 16 case files generated from the iOS code that the Kotlin core must reproduce exactly. If a rule changes on iPhone, the Android build fails until the core gives the same answers. Colours and sizes are generated into both languages from a single file.

The Android app has been in closed testing on Google Play since 20 October 2026. The public release waits for parity with the iPhone.

Premium on the account

Since version 1.1.8, accepted by Apple on 21 October 2026, Qiyam Premium belongs to the Qiyam account rather than the Apple ID: a subscription taken on one phone follows the user to the other. No third-party service: the server keeps one record per purchase, fed by both stores, and it decides.

The App Store rejection

My first submission was rejected in December 2025. It was my first app, and I had aimed for subscriptions and sync from the start without knowing App Store Connect. Things were missing from the code, and the subscription setup did not comply.

I cut. The version released on 27 April 2026 was free and entirely local, and it went through. Subscriptions came back afterwards, on Apple's own components, where review trips people up the most.

What I would do differently

  • Settle the business model before writing a single line of payment code. Three subscription architectures in eight months: the last one is right, the first two cost entire cycles of integration and submission.
  • Automate the tests from day one. For a long time, running them depended on my own discipline. Today Xcode Cloud runs the whole suite, simulations included, before every release.

The screens