You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that Whisper's hide() function ends up displaying the wrong UIWindow when other UIWindows exists that are not that main app. Such as when GoogleMobileAds is configured. Whisper expects the first non-whistleWindow to be the main app, but that is no longer true because GoogleMobileAds is tossing in it's own special UIWindow(s). I assume this may be an issue with other third-party code that adds additional UIWindow object(s) to the app. Is this a known issue?
if let window = UIApplication.shared.windows.filter({ $0 != self.whistleWindow }).first {
window.makeKeyAndVisible()
self.whistleWindow.windowLevel = UIWindowLevelNormal - 1
window.rootViewController?.setNeedsStatusBarAppearanceUpdate()
}
It seems that configuring GoogleMobileAds adds an extra UIWindow object to the app where it hangs on to ads (or something), see screenshot. This creates a situation where upon a whisper hiding itself, a blank black UIWindow obscures the app.
This Google UIWindow seems to be automatically injected into the app. The only code I needed to replicate it is this in AppDelegate:
pod 'Firebase/Core'
pod 'Firebase/AdMob'
import GoogleMobileAds
and in didFinishLaunchingWithOptions
GADMobileAds.configure(withApplicationID: "foo");
The text was updated successfully, but these errors were encountered:
I found that Whisper's hide() function ends up displaying the wrong UIWindow when other UIWindows exists that are not that main app. Such as when GoogleMobileAds is configured. Whisper expects the first non-whistleWindow to be the main app, but that is no longer true because GoogleMobileAds is tossing in it's own special UIWindow(s). I assume this may be an issue with other third-party code that adds additional UIWindow object(s) to the app. Is this a known issue?
It seems that configuring GoogleMobileAds adds an extra UIWindow object to the app where it hangs on to ads (or something), see screenshot. This creates a situation where upon a whisper hiding itself, a blank black UIWindow obscures the app.
This Google UIWindow seems to be automatically injected into the app. The only code I needed to replicate it is this in AppDelegate:
and in didFinishLaunchingWithOptions
The text was updated successfully, but these errors were encountered: