Notification Priority Levels
I want to notify users and am wondering which option to choose.
The first option shows an icon with a flag indicating that there are notifications.
For example:
The second one shows popups like in this picture :
Under which circumstances is one better than the other?
As a side note What the 2 types are called?