Daltron / NotificationBanner

The easiest way to display highly customizable in app notification banners in iOS
MIT License
4.79k stars 663 forks source link

Change key window finding logic #268

Closed vburojevic closed 4 years ago

vburojevic commented 4 years ago

In the project I'm working on, we're getting random crashes related to connectedScenes: Fatal Exception: NSInvalidArgumentException -[UIApplication connectedScenes]: unrecognized selector sent to instance someInstance

I couldn't reproduce this, but we have over 800 crashes from this in the past month. I've researched this property a bit, and it seems that just filtering the key window should be enough without using connectedScenes property. I have no idea though why UIApplication can't find this method signature sometimes.

Any thoughts?