Moodle Mobile 1 Developing a plugin tutorial part 2: Difference between revisions
- Moodle Mobile 1 Customization
- Moodle Mobile 1 simulator
- Moodle Mobile 1 Themes
- Moodle Mobile 1 Plugins Development
- Moodle Mobile 1 Developing a plugin tutorial
- Moodle Mobile 1 Developing a plugin tutorial part 2
- Moodle Mobile Testing with Phonegap Developer app
- See all Moodle App pages
- See pages for Moodle App Ionic 5 (current)
- See pages for Moodle App Ionic 3 (legacy)
- See pages Moodle App Ionic 1 (legacy)
- See pages for Moodle App Phonegap (legacy)
For user documentation see Moodle Mobile
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Template:WillNotMigrate}} | |||
{{Moodle Mobile 1}} | {{Moodle Mobile 1}} | ||
Latest revision as of 07:09, 29 April 2022
Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable. |
Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable. |
Introduction
In the second part of this tutorial we are going to add new WebServices inside our custommm local plugin.
The new WebServices will let us to add a new "forums" plugin to or custom MoodleMobile app.
Plugin spec
We want to develop a "forums" plugin that will display all the forums an user it's available to see inside a course. We will be able to read discussions and post (only read, not write)
A screenshot of the desired result:
Steps
Add the new WebServices in the local plugin
You cand find here the plugin with the forum WebServices added, https://github.com/cvaconsulting/moodle-local_custommm
When adding new WebServices to a plugin, don't forget to update the services file and also bump the version number.
Update the plugin in your installation as an usual plugin upgrade process.
Add the new WebServices to your custommm service
In your Moodle installation, you need to go to Admin -> Plugins -> WebServices -> Services, edit the custommm service for adding the new forums WebServices
Set up your MoodleMobile client
Edit the config.json file, and add "forums" in the plugins setting
"plugins" : ["notifications", "upload", "contents", "participants", "addcontact", "addnote", "sendmessage", "groups", "forums"],
Develop the MoodleMobile plugin
The full source code can be found here: