NSInternalInconsistencyException - Completion handler was not call

Suddenly a weird bug started piling up on my crashlitics

It was occurring in the

webview runJavaScriptAlertPanelWithMessage{

let alertController = UIAlertController(title: "", message: message, preferredStyle: .alert)

alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: { (action) in completionHandler() }))

self.present(alertController, animated: true, completion: nil)

} this simple method

To reproduce the bug, kill the app from memory while the notification window is open. NSInternalInconsistencyException - Completion handler was not call will occur

Strangely, there was no problem when running in the same way on iOS 16.1, and bugs started to accumulate from version 16.4.1.

Does anyone know anything about this part?

Linking to your other post.

I am having the same issue after version 16.4 and it was working fine before

NSInternalInconsistencyException - Completion handler was not call
 
 
Q