Update PushNotification.js

Added function getPendingNotifications