I'm implementing addon for Moodle Mobile 2 and I registered it using $mmCoursesDelegate.registerPlugin, so it's available from the list of the courses. It works fine, but I need to enable/disable it for the individual courses. If teacher did not activate my plugin on the regular Moodle web application for his course, it should not be available for that course in Mobile application too. I implemented external service that receives courseid and returns information if this plugin should be enabled or not for that course. However, I'm not sure how to implement this on the front end.