Skip to content

fix: adopt scene-aware UIWindow lookup for UIScene lifecycle - #9

Merged
OS-ruimoreiramendes merged 4 commits into
outsystemsfrom
fix/RMET-5364/uiscene-migration
Jul 31, 2026
Merged

fix: adopt scene-aware UIWindow lookup for UIScene lifecycle#9
OS-ruimoreiramendes merged 4 commits into
outsystemsfrom
fix/RMET-5364/uiscene-migration

Conversation

@OS-ruimoreiramendes

@OS-ruimoreiramendes OS-ruimoreiramendes commented Jul 30, 2026

Copy link
Copy Markdown

This PR migrates the deprecated UIApplication.shared.keyWindow / [[UIApplication sharedApplication] keyWindow] usages to a scene-aware pattern that iterates connectedScenes and picks the key window from the active UIWindowScene.

The same pattern is in production in OSBarcodeLib-iOS and was recently applied to ion-ios-camera in ionic-team/ion-ios-camera#18.

To test this PR, you can use the latest build in ODC and O11, just to make sure that push notifications, dialogs, and in-app messages work correctly (yeah this is one of those that's hard to test 🥲)

Ref: https://outsystemsrd.atlassian.net/browse/RMET-5364

@OS-ruimoreiramendes OS-ruimoreiramendes changed the title Fix/rmet 5364/uiscene migration fix: adopt scene-aware UIWindow lookup for UIScene lifecycle Jul 30, 2026
@OS-ruimoreiramendes
OS-ruimoreiramendes marked this pull request as ready for review July 30, 2026 10:39
@OS-ruimoreiramendes
OS-ruimoreiramendes requested a review from a team as a code owner July 30, 2026 10:39
@alexgerardojacinto alexgerardojacinto self-assigned this Jul 30, 2026
Comment thread iOS_SDK/OneSignalSDK/Source/UIApplication+OneSignal.m
@wiz-code-outsystems

wiz-code-outsystems Bot commented Jul 31, 2026

Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total -

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio.

Pull Request Developer Guidance

Questions? See the Wiz FAQ.

Please contact the Security Office if you encounter issues with Wiz pull request scanning.

@OS-ruimoreiramendes
OS-ruimoreiramendes merged commit f1a5096 into outsystems Jul 31, 2026
6 checks passed
@OS-pedrogustavobilro
OS-pedrogustavobilro deleted the fix/RMET-5364/uiscene-migration branch August 24, 2026 16:23
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.

2 participants