Unread count listener for Cordova?

Has anyone had any luck updating the cordova plugin to include the unreadcount listener?

At the moment I am using a really hacky way to achieve the result. I am not too sure why they haven’t included this function as part of the cordova plugin.