I am working on the mobile app using ionic angular cordova. I created a listener in android cordova plugin. The listener will listen to a gateway then do something every time gateway sends something to it.
Now i have a function in the ionic app to initialize the listener in cordova plugin. However, how can i get the response from the listener in the cordova plug constantly?