Not Working Moodle remote add-on

Not Working Moodle remote add-on

by Cristian Frog -
Number of replies: 4

I'm trying to add a main menu item to the Moodle Mobile app by following this tutorial:

https://docs.moodle.org/dev/Moodle_Mobile_remote_add-on_tutorial

I did a local plugin with /db/ folder where I have the mobile.php

Then I added the ZIP in the /mobile/ folder.

Then I have created the /addons/ folder in the root of my Moodle installation containing the same plugin folder and ZIP.

www/addons/tool_ouadmin/tool_ouadmin.zip


I used  https://mobileapp.moodledemo.net/

to test the APP deleting the cache from the Moodle site and the Chromium browser, but it doesn't work, no item in the menu.

In the Javascript console there is no error or anything else about the plugin.


Can someone help me please?

I attach my local plugin.

Average of ratings: -
In reply to Cristian Frog

Re: Not Working Moodle remote add-on

by Neill Magill -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

If you are not doing this so you can support the versions of the app on old phones that do not support the latest app you will want to follow the guidance on the new way (it is much more maintainable than the old way)

If you are trying to support the older apps still you would need to run your own development version of the old app, rather than using the web version.

In reply to Neill Magill

Re: Not Working Moodle remote add-on

by Cristian Frog -

I tried to follow the new way of the link you posted but it doesn't work again.

No errors, no warnings in the Javascript Console.

By the way , I of course deleted the cache, and enabled the web services in the Mobile Settings on Moodle.

In the attachments you can see what I did.

Can someone help me please???

In reply to Cristian Frog

Re: Re: Not Working Moodle remote add-on

by Neill Magill -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Lots of things are cached by the app.

 If you use a development version then you can find out how to get updates on https://docs.moodle.org/dev/Making_changes_show_up_during_development

 If using a standard app I found that changing sites caused the app to refresh the caches most of the time, when going back to the original site.

If you have coding errors in your web service code the app tends to silently fail on the app end (so I would recommend writing unit tests for if you have not done so already)
Average of ratings: Useful (1)