FirebaseAppDistribution: in-app update can't install while the app is in the foreground (parks until app is backgrounded/force-quit)
Description
Using the documented in-app update flow — AppDistribution.appDistribution().checkForUpdate() followed by UIApplication.shared.open(release.downloadURL) — the update downloads and the install is created, but it never finalizes while the app is in the foreground. The user has to background or force-quit the app for the install to complete. From inside the running app this looks like "tapped Update / Install, nothing happens."
This makes the SDK's documented update flow effectively require an undocumented manual step (leave the app) to work on iOS.
Environment
FirebaseAppDistribution(firebase-ios-sdk) 12.3.0- iOS 26.5, physical iPhone
- Build distributed via Firebase App Distribution (in‑house/enterprise signed), installed over a previously installed copy of the same app (an in‑place update)
Steps to reproduce
- Distribute build A via App Distribution and install it on the device.
- Distribute build B (higher build number).
- In build A, call
checkForUpdate(), get the release, and on user tap callUIApplication.shared.open(release.downloadURL). - Accept the system "Install" prompt.
- Keep the app in the foreground.
Expected
The update downloads and installs — as it did with HockeyApp / App Center Distribute, which opened an itms-services://?action=download-manifest&url=… URL (the classic OTA flow that backgrounds the running app and installs over it, with no manual step).
Actual
The binary downloads but the install parks indefinitely (greyed "Waiting…" placeholder). It only finalizes once the app is backgrounded or force‑quit.
Device logs show that opening release.downloadURL (an HTTPS .ipa URL) is handled by the modern App Store‑style installer (appstored / installcoordinationd), which then cannot terminate the foreground app (identifiers/tokens redacted):
appstored [AppInstall] [<app>] Found size: <N> for URL: https://firebaseapptesters.googleapis.com/.../releases/<id>:download?tester_client=ios_sdk&token=<redacted>
appstored [Download] [<app>]: Created task ... session: ...itunesstored.ats.nolowdata.utility
appstored [VPP] Manifest for UPP: https://firebaseappdistribution-pa.googleapis.com/v1/ios/manifest.plist?...&download_uri=<redacted>
installcoord. Created coordinator with intent IXCoordinatorIntentUpdating for client App Store
installcoord. Placeholder Promise began. Coordinator State: IXAppCoordinationStatePlaceholderPromiseIncomplete
runningboardd Received termination request from installcoordinationd ... maxTerminationResistance:NonInteractive
runningboardd Termination request for [<app>:<pid>] failed due to termination resistance
SpringBoard Front display did change: <app> # the app is foreground/visible
i.e. the install coordinator is created and the binary downloads, but installcoordinationd's NonInteractive termination request is rejected because the app is the foreground/visible app, so the coordinator never leaves IXAppCoordinationState…PromiseIncomplete. Backgrounding or force‑quitting the app lets the parked install finalize. (Pausing all media playback first does not help — confirmed via logs that the app, while paused-but-foreground, still resists the NonInteractive termination.)
Analysis
- HockeyApp / App Center Distribute opened a real
itms-services://?action=download-manifest&url=<manifest.plist>URL, which routes through the classic SpringBoard OTA installer; that flow backgrounds the running app and installs over it without a manual step. FirebaseAppDistributionexposes onlyrelease.downloadURL(the binarydownload_uri), and opening that HTTPS URL is handled by the modernappstoredpath, which won't update a foregrounded app.- The SDK does not expose the manifest URL (
…/v1/ios/manifest.plist?...) that iOS itself fetches for the release, so SDK consumers can't reconstruct the classicitms-services://flow themselves to work around this.
Ask
Any of:
- Document (in the "Notify testers about new builds" guide) that on iOS the app must be backgrounded/closed for an in‑place update to finalize, with recommended guidance to show the tester.
- Expose the
itms-services://install URL (or the manifest URL) onAppDistributionRelease, or provide aninstall()API, so consumers can trigger the classic OTA flow that does not require leaving the foreground. - Confirm whether this is expected behavior on current iOS.
Notes
All bundle identifiers, app/project IDs, tokens, version numbers and device identifiers above are redacted.
🤖 Written by Claude
Hey @jalmaas. I tried reproducing the issue by following your step, and it seems like I was able to encounter the same behavior. When I clicked Install, the app automatically closed then showed the loading icon to install the latest one. I think it is working as intended maybe because iOS terminates the app to overwrite its files (similar to app updates from App Store). Let me know if you have questions or clarifications. Thanks.
It did not terminate automatically in my case. But good to know that it is expected to terminate by itself. Might be something in my end preventing it. Thanks for answering!