Tracking Notifications/Interruptions

Is there a code to track push-up notifications as well?