Belize Lottery

A results app for Belize's six national lotteries. It first reached the App Store in 2019, and the new Belize Lottery, rebuilt from scratch in SwiftUI, arrives in January 2027.

I started it in 2017 for everyone who wants the numbers, especially the people of Belize. It's my longest-running app, and the one where I've learned the most about keeping software alive for years.

Role
Solo developer: design, code, backend, release
Timeline
2017 to now, first released 2019
Platforms
iPhone, iPad, Apple Watch, widgets, Live Activities
Stack
SwiftUI, SwiftData, Firebase, StoreKit 2, Python, GitHub Actions, fastlane
Status
On the App Store; the new Belize Lottery is heading to review
Latest Boledo results Ticket and play history Hot and cold number statistics Saved number sets with match badges

The problem

Belize runs six national lottery games: Boledo, Pick 3, Fantasy 5, Jackpot, the Ordinary Lottery and Million Dalla, each drawn on its own schedule. Players had no simple way to see the latest numbers, look back at old draws, or check their own tickets.

What I built

The app shows the latest numbers for every game on one screen, keeps years of past results searchable by date or number, and works offline for recent draws. Players can save their own number sets, log the tickets they buy and have each one checked against its draw, and see what they've spent and won over time.

For the new Belize Lottery I rebuilt everything from scratch in SwiftUI:

  • One codebase for iPhone, iPad and Apple Watch, plus Home Screen and Lock Screen widgets and Live Activities.
  • Results come from a Firebase Realtime Database and are cached on the device with SwiftData, so the app opens fast and works without signal.
  • A "Remove Ads" purchase built on StoreKit 2, and ads that respect the user's privacy consent choices.
  • Localized into 6 languages.
  • A small internal admin app that lets results be published straight to the production database that feeds the app and its notifications.

Hard parts

Getting the results in automatically

The app is only useful if the numbers show up on time. I wrote a Python scraper that runs on 4 GitHub Actions schedules, matched to the draw times, and publishes each draw's results to Firebase. When the upstream source locked its API down, the bot stopped working overnight. I re-engineered it to read from a rate-limited public endpoint instead, pacing its requests so it stays within the limits and keeps publishing reliably.

Releasing without a release team

Shipping an app in 6 languages across iPhone, iPad and Watch means a lot of screenshots and metadata. I automated the whole release with 17 fastlane lanes: code signing, 48 framed and localized screenshots, a scripted App Preview video recorded from the real app, metadata checks before submission, and version bumps. A release runs from a script instead of a long manual checklist.

Rebuilding without losing users

The current app has been in people's hands for years. The rebuild had to keep the same results, the same games and the same habits while replacing every line underneath. I kept the old app live and stable the whole time and built the new one alongside it.

Results

  • First released on the App Store in 2019; the new Belize Lottery arrives in January 2027.
  • Results publish on their own, on schedule, with no one copying numbers by hand.
  • A complete SwiftUI rebuild covering iPhone, iPad, Apple Watch, widgets and Live Activities.
  • Releases that run from a script instead of a checklist.

See the app's page at Bang Bang Studios, or watch the App Preview video on YouTube.

Where it stands today: the current app is on the App Store today, and the new Belize Lottery, rebuilt in SwiftUI, arrives in January 2027.

Belize Lottery is an independent app. It is not affiliated with or endorsed by the Government of Belize or any official lottery. 18+ only.

Need an app that runs itself?

If you need results, data or updates delivered to your customers automatically, let's talk about how.

Start with a few questions

See the iOS app service Next: MyFitZ Back to all work