Fix bug where notiifcation api is not supported