add notification judgement to play alarm.