Post

Replies

Boosts

Views

Activity

[UIApplication applicationState] should not run in background task
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?
6
1
2.7k
Mar ’20