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.
🔹 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.