Hi Sanat,
usually plugins in the app are meant to be used only in their context. E.g. an activity plugin should be run when the activity is open, not all the time. Given your use case, maybe you can create a filter plugin and implement app support, making it implement the handleHtml function. This function should be called everytime the app renders some HTML returned by Moodle, as long as your filter is enabled for that context.
usually plugins in the app are meant to be used only in their context. E.g. an activity plugin should be run when the activity is open, not all the time. Given your use case, maybe you can create a filter plugin and implement app support, making it implement the handleHtml function. This function should be called everytime the app renders some HTML returned by Moodle, as long as your filter is enabled for that context.
The only way to call PHP functions from JS is with WebService calls, yes.
Cheers,
Dani