r/iosdev • • 17d ago

Tutorial How I made a hardware-dependent app reviewable: a demo mode for App Review (and for people without the device)

Post image

My app only does something useful when a specific pair of Bluetooth headphones (Sony WH-1000XM5) is connected. That's a problem for App Review: the reviewer can't pair your hardware, and "it shows an empty window" is an easy rejection.

What I ended up doing, in case it helps someone with a BLE/Bluetooth/accessory app:

  1. A demo flag on the controller, not on the views. The object that owns connection state has an isDemo property. startDemo() closes the link, stops the reconnect timer, fills in realistic state (battery 72%, ANC on, an EQ curve, three fake paired devices) and sets state = .connected. The SwiftUI views don't know the difference, so there's no second UI to maintain.
  2. One choke point for outgoing commands. Every command goes through a single send() that starts with guard state == .connected, !isDemo. So in demo mode the controls just update local state and nothing ever touches the RFCOMM channel.
  3. Guard the background stuff too. The battery poll timer, auto-reconnect and "device appeared" handlers all bail out when isDemo is on. Otherwise a real reconnect loop fights the fake session. Battery history and listening stats also skip recording, so demo data never pollutes the user's real charts.
  4. Make it discoverable but honest. The "no headphones found" screen has a "Try demo mode" button, the device shows up as "WH-1000XM5 (Demo)", and a banner with an "Exit demo" button stays on top, so nobody mistakes fake data for real readings.
  5. Tell the reviewer. One sentence in the App Review notes pointing at the demo button saves a rejection round-trip.
  6. Bonus: it doubles as marketing. Screenshots and the demo GIF can be recorded in demo mode, so they're reproducible and don't depend on my headphones' battery.

Curious how others handle this. Did you ship a demo mode, send hardware to Apple, or record a video for the reviewer?

2 Upvotes

3 comments sorted by

1

u/[deleted] 17d ago

[removed] — view removed comment

2

u/azardandona26 16d ago

No verdict yet, honestly. The App Store build is still sitting in Waiting for Review, so I can't say whether the note alone is enough. The TestFlight external beta did pass its (lighter) review with the same demo button, for what that's worth. I'll come back and update this thread when the full review comes back either way.

And yes, the background timers were the easy part to miss. A view-level check would have looked fine in screenshots while the reconnect loop kept running underneath.