In any case you will be able to listen with Appium ONLY system OS events! Not your app.
Your app should provide api interface how to listen it events and get e.g. count of unread messages. Using this api you first must be able to make it manually using any method. E.g. send. Http get request to url and port that listen your app.