Hi,
I got this message from xcode "Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]". I know this message can't be mitigated by disabling Main Thread Checker from Xcode, but it doesn't mean the risk is gone.
Is there any better way In background task to get current application state instead of calling UIApplication.shared.applicationState?