mobile supprt for plugins' "Pure Javascript plugins" problem

Re: mobile supprt for plugins' "Pure Javascript plugins" problem

by Dani Palou -
Number of replies: 0
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi,

  1. That javascript property needs to be the javascript code itself. We'll probably support adding file URLs in the future, but for now it must be the javascript code. So you should read the file using file_get_contents or similar and then return the contents.
  2. The init function must be specified in mobile.php, just like "method". It will be called as soon as the app is started.

Cheers,

Dani