Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(iOS): IAB not showing up in apps using UIScenes #1067

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Aug 28, 2024

Platforms affected

iOS

Motivation and Context

When a Cordova app uses the UIScene APIs introduced in iOS 13, the temporary window created for the IAB ViewController is not associated with that scene and does not appear on screen.

Description

On iOS 13 and newer, check if the CDVViewController's owner window has an associated scene. If yes, use that when constructing the temporary UIWindow for the IAB view.

Testing

Tested manually using mobilespec in a simulator with cordova-ios @ 7.1.1.
Tested manually using mobilespec in a simulator with cordova-ios @ 8.0.0-dev.

Checklist

  • I've run the tests to see all new and existing tests pass

@dpogue dpogue marked this pull request as ready for review August 29, 2024 10:01
Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Test both iOS 18 and iOS 17.x simulators.

@dpogue dpogue merged commit e2d8429 into apache:master Aug 30, 2024
12 of 15 checks passed
@dpogue dpogue deleted the scene-fix branch August 30, 2024 06:58
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