Hey, I'm showing notifications on desktop when certain events occur. I don't want the notification to popup if the app has focus. Is it possible to prevent this from happening?
Another way of asking, how to tell if the Desktop has focus?
p
Pablichjenkov
10/02/2024, 7:22 PM
If you are using the compose-navigation library, you can read the lifecycle state from the NavBackstackEntry.
Without the compose-navigation library I don't know how to do it. I think decompose also support this