change notification api and add activity activation function