I'm working on a project where I'd like to notify a user of an important event in the application. There are two options that I have at my disposal:
Use the browser/HTML5 Desktop Notifications. These require permissions upfront which the user has to approve. The user does not get taken to the tab at the time of the notification.
Use a browser 'alert' call that will open and focus the appropriate tab without asking for permissions. A little more annoying but less permissions.
Which of these two would lead to better user engagement?