I’d like to get
UIApplication.shared.applicationState from a background thread. If I try to get the application state from a background thread, I get errors when accessing it since it’s not the main thread (since it’s a
The reason I’m doing this is so I can log events that also includes information such as the current application state. Logging events for me is happening in the background so it does not lock up the main thread.
Is there an alternative for getting the application state within a background thread?