How to Launch third party app and listen to events


I need to launch third party app from Ionic2 app (android). I am thinking of doing this by writing a cordova native plugin.
Here I also want to listen for events from third party app. For example listen for login response etc.
Can someone show a sample plugin and app doing this?