Today in Spokane: Ask in plain English, on the device first and Gemini in the cloud

Inspiration

Local news in Spokane is scattered across TV station sites, police scanners, the National Weather Service, road notices and venue calendars. Today in Spokane already pulled all of that into one timeline of short, plain-language alerts, with push notifications. But a feed only helps if you know where to look. People don't think in categories and filters. They think in questions: "What can I take my kids to this weekend?" or "I saw police on Highway 2, what's going on?" We wanted the app to answer those questions directly, on every platform, without making anything up.

What it does

Ask lets you type a question in plain English into the search box, on iPhone, Android or the web. The app answers with its own live listings: events, breaking alerts, road closures and the forecast.

  • "What events could I take my kids to this weekend?" → family events on Saturday and Sunday
  • "Is Division closed?" → current closures on Division Street
  • "Will it snow tomorrow?" → the latest forecast
  • "When do the Chiefs play?" → upcoming games, not just today's

Every answer says what the app looked for ("Family events · This weekend") and where the question was read: on the device, or by Gemini in the cloud.

Ask searches the new Events tab: things to do in Spokane from venues' and organizers' public listings, each linking back to its source.

How we built it

Firebase AI Logic hybrid inference

All three apps use Firebase AI Logic's hybrid inference. The device's own model reads the question first, and Gemini in the cloud reads it when the device has no model or its model fails.

Platform On-device model Cloud fallback App Check
iPhone (Swift, SwiftUI) Apple Foundation Models, via .hybridModel(primary: .systemModel(), secondary: .geminiModel(...)) Gemini (gemini-3.5-flash-lite, Gemini Developer API) App Attest
Android (Kotlin, Jetpack Compose) Gemini Nano, via firebase-ai-ondevice and InferenceMode.PREFER_ON_DEVICE Gemini Play Integrity
Web (React, Vite) Chrome's built-in Gemini Nano, via firebase/ai and PREFER_ON_DEVICE Gemini reCAPTCHA v3

The model never writes the answer. It fills in a small structured form (structured output: a Swift @Generable type, and a JSON schema on Android and the web): which parts of the app the question is about, which days, which kinds of event or news, and any places or names. The app then filters its own live data from Firestore with that form, so every result is a real listing. Only the question's words and today's date are sent to a model, never the listings and nothing about the reader.

Answers are held to the question. A small on-device model sometimes adds things nobody asked for: an invented keyword, "free only", every category at once. So:

  • sampling is greedy (temperature 0), so the same question reads the same way every time;
  • a grounding pass keeps a keyword only if it matches a word in the question, keeps "free" only if the question asks for free things, and lets named days ("Saturday", "tomorrow") override the model's reading;
  • with no model at all, the app still answers by reading the question's words.

One spec, three languages. What the apps must do alike is written down once: the form, the model's instructions word for word, the grounding rules, the search and a shared table of test questions. Swift, Kotlin and JavaScript each implement it and test against it.

We checked the on-device path against live data on a real iPhone 16 Pro. Apple's model reads a question in 1.5 to 2 seconds.

Built Nov 11–30, 2026

Before the hackathon, Today in Spokane was a live iPhone app and website (alerts, roads, notifications), with an Android port under way. During the submission period we built:

  • Ask, with Firebase AI Logic hybrid inference, on iOS, Android and the web
  • Events on all three platforms, which Ask searches
  • the grounding and steady-sampling work above, tested on device
  • App Check on every platform (App Attest, Play Integrity, reCAPTCHA v3), so the cloud fallback is protected
  • releases: iOS 1.1.0, 1.1.1 and 1.1.2 on the App Store; Android 1.0.1 (first Play release, Nov 17) and 1.1.0; and the live website

Challenges

  • Unsteady small-model readings. The same question could come back different ways. Greedy sampling plus grounding fixed it, and tests lock it in.
  • On-device availability varies widely. Apple Intelligence iPhones, phones with Gemini Nano, desktop Chrome, and everyone else. Hybrid inference meant one code path that works everywhere, with a fallback that still answers when no model is available.
  • Keeping three codebases in step, which the shared spec and shared test questions solved.

Accomplishments

  • It's live and real: the App Store, the web, and Google Play (1.1.0 in review).
  • Every answer is a real listing, and the app tells you where your question was read.
  • Most questions never leave the device.

What we learned

A small model is best used as a reader, not a writer. Asking it only to sort a sentence into a search, then checking its work against the question's own words, gave fast, private, trustworthy answers.

What's next

More sources for Events, follow-up questions ("only the free ones"), and asking by voice.

Try it

Demo video: https://youtu.be/JieXv6PAkEI

Built With

  • apple-foundation-models
  • firebase
  • firebase-ai-logic
  • firebase-app-check
  • firestore
  • gemini
  • gemini-nano
  • jetpack-compose
  • kotlin
  • react
  • swift
  • swiftui
  • vite
Share this project:

Updates

Submission history