HTML5 introduces Web Notifications API which “allows alerting the user outside the context of a web page of an occurrence, such as the delivery of email“. This opens up quite a few possibilities for developers like alerting a user when a document needs approval irrespective of the XPage he is currently on.
In this example I will use the Extension Library control Remote Service to poll a view to check if any documents require approval and if yes then show notification to user.
Remote Service control
You can find the Remote Service control under Continue reading