Skip to content

Defer the notice presenter's window until the first presentation#25637

Draft
crazytonyli wants to merge 3 commits into
task/scene-api-aux-windowsfrom
task/scene-api-notice-presenter
Draft

Defer the notice presenter's window until the first presentation#25637
crazytonyli wants to merge 3 commits into
task/scene-api-aux-windowsfrom
task/scene-api-notice-presenter

Conversation

@crazytonyli

Copy link
Copy Markdown
Contributor

Note

This PR will be merged after #25636

UntouchableWindow was created with init(frame:), which leaves it without a
windowScene. Such a window does not display (or attaches to the wrong scene)
under the UIScene life cycle. Add a windowScene initializer and use it in
NoticePresenter when the main window's scene is available.
The presenter previously created its overlay window eagerly at setup. The
window is now created lazily on the first foreground presentation and
attached to the active scene, reattaching it if the scene has changed since
the window was created. When no scene is connected yet (e.g. a notice posted
during launch, before UIKit connects the scene), the notice stays at the head
of the queue and presentation is retried once the app becomes active. The
presenter also processes any notice posted before it was created, since the
store does not replay state to new subscribers. The frame-based
UntouchableWindow initializer is unused now and removed.
@dangermattic

Copy link
Copy Markdown
Collaborator
1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number32518
VersionPR #25637
Bundle IDorg.wordpress.alpha
Commit0bc2261
Installation URL112491658om9g
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number32518
VersionPR #25637
Bundle IDcom.jetpack.alpha
Commit0bc2261
Installation URL4fhgirq9btbig
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants