There are a lot of stackoverflow threads regarding this topic, but I still didn\'t find a good solution.
If the app is not in the background, I can check launc
SWIFT 5.1
UIApplication.State
did not work for me, because once I read fingerprint (modal is shown) in my app, notification is also thrown in upper bar and user must click it.
I've created
public static var isNotificationFromApp: Bool = false
in AppDelegate
and I set it true
in my starting viewController
and then in my notification storyboard
/viewController
I just check that :)
Hope it can come in handy