I am trying to find out what is the cause of a black screen that a comparatively small set of users are facing. Most of them are coming from the background. The app uses ReSwift for data refreshing, although that does not trigger the re run of the didFinishLaunchingWithOptions. I also thought might be OOM (Out Of Memory), but if I provoque it and test it, the app just crashes. For what is worth, I have also observed that is happening to 6s and SE (2nd edition) users. What can I try next?
This is the code that runs on changing its status:
func applicationWillEnterForeground(_ application: UIApplication) {
let internetConnectionStatus = InternetConnectionStatus()
_ = internetConnectionStatus.isOk().subscribe(onNext: { connected in
if !connected {
self.showFloatr(withBody: "ctkit.error.no-internet")
}
})
}
func applicationDidBecomeActive(_ application: UIApplication) {
if let keyWindow = UIApplication.shared.keyWindow,
keyWindow.rootViewController is AuthPasswordRecoveryViewController ||
keyWindow.rootViewController is AuthNavigationViewController {
return
}
UIApplication.shared.applicationIconBadgeNumber = 0
UIApplication.shared.registerForRemoteNotifications()
}
The affected users are running iOS 15.