fix(): prevent iOS startup hang while loading protocol modules - #305
Open
PeratX wants to merge 1 commit into
Open
fix(): prevent iOS startup hang while loading protocol modules#305PeratX wants to merge 1 commit into
PeratX wants to merge 1 commit into
Conversation
PeratX
marked this pull request as ready for review
July 26, 2026 04:59
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
awaitResultWithID(_:)registers its continuationStatusBar.setBackgroundColorto Android, where the Capacitor API is implementedRoot cause
iOS protocol-module loading evaluates JavaScript and then awaits a result by ID. The existing implementation split result storage and listener registration across two actors. A JavaScript result could arrive after the result lookup but before the waiter was registered. The notification then removed the listener entry, and the late continuation was never resumed, leaving startup permanently waiting on the native launch screen.
The reported
Error: not implementedmessage came from calling the Android-only status-bar background-color API on iOS. It occurs after protocol initialization and was not the cause of the startup hang, but this PR removes that unrelated error as well.Validation
References #218