DEV Community

MORK STUDIO
MORK STUDIO

Posted on Originally published at Medium AI-assisted

It Passed App Store Review. I Didn't Release It.

I'm not an engineer. I build apps with a team of AI agents, and this post was written with AI help.

This is the story of four days when I chose not to release an app that had already passed App Store review.

The app is Ekikan Alarm (ekikan means "between stations"). Fall asleep on the train, and just before your stop it plays an alarm only you can hear in your earphones. I built it with AI, and it went from idea to App Store in about six days. It's made for trains in Japan.

Submit, withdraw, resubmit, pass. And still, I didn't release it.

Five submissions, four withdrawn by me

I submitted Ekikan Alarm to App Store review five times.

Only the last one went live. But the other four weren't rejected by Apple. We withdrew every one of them ourselves.

  • 1st (Nov 12, night): withdrawn. No links to the support and privacy pages inside the app.
  • 2nd (Nov 13, morning): withdrawn. The time-remaining display on the lock screen was white text on a white background, unreadable.
  • 3rd (Nov 14, after midnight): withdrawn. It passed review, but the alarm went off too early.
  • 4th (Nov 15, after midnight): the version that went live.

Once along the way we submitted and pulled it right away, so the count comes to five.

The first and second were oversights we caught ourselves after submitting. We added the links, changed the lock screen to white text on navy, and resubmitted.

The one I really agonized over was the third. Before that story, let me explain the "logs" in the test build.

The test build kept a log

This app wakes you while you're asleep. So the person riding can't watch what the app is doing.

That's why the test build (the debug build) got a way to record location and the app's behavior during the ride. We built it on November 11 and used it from the test ride on the 12th.

It recorded things like:

  • How accurate the location was, speed and heading, and how many kilometers were left to the stop
  • How long location was lost, for example underground
  • When the timer was moved earlier or later
  • What triggered the alarm (location or timer)
  • When the app went to the background, came back, or closed

After each real ride, I handed the log to the AI and had it check, step by step, "when, on which judgment, and how did the app behave?" Anything I couldn't watch during the ride, I could trace afterward.

The log exists only in the test build. It's not in the App Store version. Since it includes location, it stays only on the iPhone.

It passed. But it was too early.

Around noon on November 14, the third submission passed review. One button press and it would be on the App Store.

But the day before, testing on a real train, something had bothered me.

The timer went off four to five minutes early.

When the AI checked the log from that ride, there were two causes:

  • The time the train waited to depart at the station where I boarded (about 1.5 minutes)
  • A longer stop at a station along the way (about 3 minutes)

The timer works out "how many minutes until arrival" from the length of track between stations. But time spent waiting to depart, or stopping longer along the way, wasn't in that calculation.

Four or five minutes early cuts into sleep you could have had. And an alarm that goes off early slowly stops being trusted. You get used to it and start ignoring it. That's exactly how people end up sleeping past their stop.

So I canceled the version that passed review instead of releasing it.

screen
The screen during a ride (Railnap, the US edition)

What we fixed

We fixed three things:

  • The default became "sound the alarm 1 km (0.6 miles) before the station." Not "how many minutes before," but "how far before." That was my idea. Time can drift; distance doesn't drift as easily
  • When the timer's time comes, if location is available and the station is still far, the alarm waits
  • If the train stops at a station for more than a minute along the way, the wake-up time moves back by that much

"It went off right at 1 km"

That night, I took the fixed test build, drove from home to the station, and then rode the train to test it.

There was a reason I tested the drive too. If you press start at home and drive to the station, then when you drive along a road beside the tracks, the app could mistake that for the train departing and start counting early. We'd found that problem that very day. So I wanted to test the part before boarding just the way I'd normally use it.

Sure enough, driving along the tracks near the station, it still mistook the car for a departing train. So we added: "After deciding the train has departed, if it stops near a station for a minute or moves away from the tracks, cancel the departure and start counting again." We confirmed the fix by replaying the log from that drive.

On the train, the first try went off about 1.5 km (about a mile) before the stop. Still a bit early.

One more tweak, one more test. The log said: 978 meters.

Almost exactly 1 km before the station.

It went off right at 1 km.

One last tweak and it's release quality.

That's what I said at the time.

With the final tweak in, we resubmitted in the middle of the night on November 15, and it went live early on November 17.

Choosing not to ship

Not releasing something that passed review took some nerve. It finally passed, and now I'd be waiting all over again.

But for an alarm that's supposed to keep you from sleeping past your stop, "it wakes you up properly" is everything. If I shipped it with that off, there'd be no point in having made it.

It's an app I'd wanted for years. That's exactly why I didn't compromise here.

Ready to ship and okay to ship are not the same thing. When you build alone, you're the only one who can draw that line.

screen
When the alarm rings (Railnap, the US edition)

If your app passed review, would you ship it as is?


Ekikan Alarm is available on the Japanese App Store, for trains in Japan. Outside Japan, including the US, the same app is available in English as Railnap.

▶ Ekikan Alarm on the App Store (Japan)

▶ Railnap on the App Store

Originally published on Medium.

Top comments (6)

Collapse
 
xenoci_com profile image
xenoci.com •

Holding a build that already passed review because the logs from real rides said it was too early is a call a lot of experienced devs wouldn't make. The test build log idea is great for an app whose user is asleep by design.

I'm curious about the loop behind those four withdrawals: when a ride log showed a problem, how long did it take to get a fixed build back onto your iPhone for the next train ride? Were the AI agents building through TestFlight each time, or straight onto the phone?

Collapse
 
mork_studio profile image
MORK STUDIO •

Thanks! For those four days, the fixes didn't go through TestFlight. We installed debug builds straight from Xcode onto a few test iPhones, and pulled the ride logs off afterward. The loop was usually about a day: ride, have the AI read the log, fix it the next day, then collect new logs on the next rides. TestFlight came a little later, once things settled down.

Collapse
 
xenoci_com profile image
xenoci.com •

A day per loop for a train app makes sense, since the ride itself is the test. One thing that helped me with the same "real world only" bugs: replay a saved ride log into the simulator (feed the recorded locations and timestamps back as a GPX file), so the AI can check most fixes the same evening instead of waiting for the next ride. The real ride then only confirms.

Collapse
 
mork_studio profile image
MORK STUDIO •

Yes, that's the way. We ended up doing something close to it: for the bug where a car driving near the tracks looked like a departing train, we confirmed the fix by replaying the log from that drive before the next real ride. Making it a routine step through the simulator is a great idea. Thanks for the tip!

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

passed review and still didn't release it. four minutes early is enough to stop trusting the alarm.

Collapse
 
mork_studio profile image
MORK STUDIO •

Exactly. Once an alarm rings early a few times, you start ignoring it, and that's the day you miss your stop. Thanks for reading!