code: def ShowNotifications(self, reset=True):
      
      shown_notifications = self.Schema.SHOWN_NOTIFICATIONS()
  
      # Pending notifications first
      pending = self.Get(self.Schema.PENDING_NOTIFICATIONS, [])
      for notification in pending:
        shown_notifications.Append(notification)
  
      notifications = self.Get(self.Schema.SHOWN_NOTIFICATIONS, [])
      for notification in notifications:
        shown_notifications.Append(notification)
  
      # Shall we reset the pending notification state?
      if reset:
        self.Set(shown_notifications)
        self.Set(self.Schema.PENDING_NOTIFICATIONS())
        self.Flush()
  
      return shown_notifications
docs: A generator of current notifications.