-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.2
-
-
MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
Moodle App 3.9.3
Due to some technical limitations we had to remove the plugin cordova-plugin-ionic-webview from Android. The problem is that cordova doesn't let you specify that a plugin should only be installed in one platform, so it automatically installs it in both.
It's really annoying to have to install/uninstall the plugin everytime you switch platform, we should find a solution. Some possible options:
- Implement a hook that automatically adds or removes the plugin. The problem is that the hook will modify package.json.
- Create a fork of the plugin and remove the android platform from there, that way the plugin will only be installed in ios. The problem is that we'll have to keep the plugin up-to-date.
- Use plugman to install the plugin only in iOS. The problem is that plugin doesn't register this anywhere, there is no record that the plugin is installed. Also, the command would have to be used everytime the platform is removed and re-added.
- Create our own custom CLI and use it on top of ionic/cordova CLI.