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

[MOB-?] Fix InAppMessage not being displayed due to correct KeyWindow not being retrieved on app that uses multiple windows #740

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

harrywombat
Copy link

@harrywombat harrywombat commented Jan 26, 2024

🔹 Jira Ticket(s)

✏️ Description

If a project makes use of multiple Windows, then the IterableSDK can fail to retrieve the correct one, resulting in the InAppMessage failing and never being displayed.

This fix allows the currently displayed Window to be retrieved (the true keyWindow), so the InAppMessage can be displayed on the very top view controller.

It also accounts for the iOS 15 changes to windows.

Notes:

I have only tested it on my company's app which uses multiple windows, I haven't tested it on a single window app.

@jena-chakour
Copy link
Contributor

Thanks for sharing this, Harry!

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.

4 participants