实现notification,及状态判断