← Back to Devlog
• Monetization & App Review • Updated

Six Rejections, One Approval: Getting a Godot Game's In-App Purchase Through Apple App Review

One Product, Six Rejections: Maze Point sells exactly one in-app purchase. It is a universal non-consumable: on iPhone and iPad it appears as REMOVE ADS, and on Apple TV, where the game never shows ads, the same product appears as BUY FULL GAME. Between late September and mid-November 2026, App Review rejected builds carrying that purchase six times across iOS and tvOS. In November, with version 1.2.8, Apple approved it. No single rejection was dramatic. Together they cover most of the ways a first in-app purchase can fail review, and almost none of them were about StoreKit code alone.

Our team directed this work, and two AI coding agents did most of the engineering. Gemini, working through Antigravity, built the purchase flow, the promo artwork pipeline and the native StoreKit 2 bridge through mid-October. Claude Code took over at the start of November and handled the last two rejections and the release that was approved. We did the parts no agent can: reading the Resolution Center, checking agreements, and pressing submit in App Store Connect. This post tells the story one rejection at a time.

1. The Button That Did Nothing

The first rejection arrived on September 25 for iOS 1.2.0, under two guidelines at once. Guideline 2.1(b), App Completeness: the purchase button did not respond in the sandbox. Guideline 2.3.2, Accurate Metadata: the promoted in-app purchase artwork was identical to the app icon.

The 2.1(b) cause was structural. Our store code asked Godot for the InAppStore singleton that Godot 3 shipped with its iOS export. Godot 4 does not include it. On a real device the check returned false, the code took a quiet fallback path, and no purchase sheet or message ever appeared. Our headless tests passed because their mocks always provided a singleton. The first fix improved the button's feedback and replaced the artwork, but it did not yet give the game a way to talk to StoreKit.

On October 5, Apple TV 1.2.1 came back with the same pair. The button still did not respond. The new promo image failed too: our art generator had drawn a small gameplay grid, which App Review found too much like an in-app screenshot, with text too small to read. The approved artwork is a dedicated 1024 by 1024 image: no gameplay, no app icon, and large type.

This round also turned up something worse than a dead button. A review of the purchase code found fallback paths that could grant the full game without any purchase at all. They had been written as "graceful degradation" for platforms without a store. We removed them before the purchase went live. The same habit of quietly falling back had produced both bugs: one gave the product away, and the other hid the fact that the store was missing.

2. The Purchase Apple Never Saw

Around October 12, version 1.2.4 was rejected on both iOS and tvOS, again under 2.1(b). Two separate gaps caused it.

The first was the missing StoreKit integration. Gemini built a native Swift StoreKit 2 bridge inside the Xcode host app that Godot's export generates. It talks to the game over an authenticated loopback socket and finishes each transaction only after the game has saved the entitlement. We wrote that up separately in Bridging StoreKit 2 into Godot 4 over a Loopback Socket.

The second gap was in App Store Connect, not in code. A first in-app purchase is not reviewed just because it exists. It has to be attached to the app version's review submission, and it needs a review screenshot and, ideally, a review note. Ours sat in Ready to Submit, unattached, so reviewers were testing a purchase Apple had never been asked to review. We now treat that setup as part of the build. A helper uploads a review screenshot of the purchase screen, writes a review note explaining that one universal purchase removes ads on iPhone and iPad and unlocks the full game on Apple TV, and links the purchase to each submission through the App Store Connect API.

3. "Loaded Indefinitely"

On November 2, tvOS 1.2.6 was rejected with the most specific feedback yet: the app loaded indefinitely after the reviewer tapped BUY FULL GAME. The button now responded. It showed PROCESSING... and then never moved on.

App Review's message pointed at sandbox configuration and the Paid Apps Agreement, so we checked those first. The agreement was active, which ruled it out. We then read the code and found that once the bridge reported it was connected, nothing limited how long the game would wait for the purchase sheet. Any lost message became a spinner that lasted forever. We put two limits on the wait: a short one for the native side to confirm it had started the purchase, and a long one for the player to finish with the system sheet. We also presented the sheet explicitly on the foreground scene, and queued events raised before the connection was authenticated instead of dropping them.

# Simplified: every wait has an end, and every end is visible.
const BRIDGE_ACK_TIMEOUT := 15.0   # native side confirms the purchase started
const SHEET_TIMEOUT := 120.0       # the player is looking at the system sheet

func _start_purchase() -> void:
    _show_processing()
    _bridge.send({"cmd": "purchase"})
    _watchdog.start(BRIDGE_ACK_TIMEOUT)

func _on_purchase_started() -> void:
    _watchdog.start(SHEET_TIMEOUT)

func _on_watchdog_timeout() -> void:
    _restore_buy_button()
    _show_error("The App Store did not respond. Please try again.")

One caution for anyone reading this as a recipe: that diagnosis came from reading code, not from reproducing the hang on a device. The fix was correct. As the next round showed, it was not the cause.

4. The Build We Shipped Was Not the Build We Tested

Version 1.2.7 was meant to carry the timeout fix to both platforms. On November 11, iOS 1.2.7 was rejected on an iPad: REMOVE ADS stuck on PROCESSING..., no sheet. Because the app was rejected, the purchase was not reviewed either.

This time we started from the artifact Apple had, not from the source. A Godot iOS or tvOS build has two halves. The native half, including our Swift bridge, lives in the Xcode project in git. The game half, every line of GDScript, is exported into a packed data file that the Xcode project embeds. Our release script archived the Xcode project but never re-exported the game data. The packed file inside the 1.2.7 build was dated October 13. It predated both the authentication handshake and the timeout fix.

So the store build paired a current native bridge, which required authentication, with a month-old game client that did not know how to authenticate. The bridge did exactly what it was designed to do with an unauthenticated message: it dropped it. The old client had no timeout, so it waited forever. The tvOS 1.2.6 rejection was very likely the same failure.

Our tests could not catch this, because the simulator helper always injected a freshly exported data file before launching. Every test ran the newest code; the store got the oldest. Once we added a preview mode that runs the game data from the shipped build itself, the hang reproduced within minutes.

The fix had three parts. The release script now exports the game data fresh before every archive. After each build, it extracts the game data from the finished iOS, tvOS or Android package and compares it byte for byte with a fresh export, and the release stops if they differ. And the simulator preview can now run directly from a shipped build, so we test what reviewers will test.

# Simplified: verify the artifact, not the source tree.
shipped = sha256(extract_game_data(release_package))
fresh = sha256(export_game_data())
if shipped != fresh:
    fail("release package carries stale game data")

5. Approval

Version 1.2.8 went out on November 16 with fresh game data on every platform, the purchase attached to the iOS submission with its review screenshot and note, and a release note that said plainly what had been wrong: purchases getting stuck on loading. This time the purchase passed review. Of the six rejections, only the first four involved our StoreKit integration at all; the rest came from waiting without limits and from shipping stale game code.

Takeaways

  • Test the artifact you ship. A test path that injects fresh code hides every packaging bug in the release path.
  • Verify inside the built package. Comparing the shipped game data with a fresh export is what closed the gap for good.
  • When a feature has a native half and a scripted half, they can drift apart. Make a protocol mismatch fail loudly instead of turning into silence.
  • Every wait needs a limit and a visible outcome. "Unresponsive" and "loaded indefinitely" were each enough for a 2.1(b) rejection.
  • For a first in-app purchase, App Store Connect setup is part of the build: attach it to the submission, and add a review screenshot and note.
  • Promoted purchase artwork must stand on its own: not the app icon, not a screenshot, and text large enough to read.
  • Remove fallback paths that grant or skip purchases from release builds. Quiet fallbacks give products away and hide missing stores.
  • Rule out account causes with evidence, then label a code-only diagnosis as unconfirmed until something reproduces it.