added clearPendingNotification function

Function for discarding the pending notification added named - clearPendingNotification
Call this function, it will clear all pending notifications in the queue.