Probably a simple question, I can call a native function from the JavaScript, for example:
Android.setVolume(0.7)
However, I do not know how to trigger (from Android/Java), or handle events (JS) that are not caused by user interaction, for example, alerting the JS when the user's network state changes, the battery gets below a certain point etc.
Any help greatly appreciated.