Defer notification when in transitory inactive state
Track app opens and app closes