Listen to events from webapp Inside web view/inAppBrowser

Hello everyone.

Like the title said, I would like to setup some eventListeners, that can be triggered by events inside an html app running from a server inside a web view/inAppBrowser.

I could do (and did this) several times with Titanium, just wondering if i can do the same with ionic/cordova.

Anyone ever tried this?