[UIApplication sharedApplication].applicationState
sometimes returns inactiveState all the time, but the app is actually in the foreground and is not obscured by any other app or notification.I am using the iOS12 system and this problem has occurred.
What do you think the problem is ?
Thank you.