Moodle Mobile App - development a addon which is accessible for not logged in users

Re: Moodle Mobile App - development a addon which is accessible for not logged in users

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,

if this new functionality uses a Moodle WebService, then it will not work for "guest" users (not logged in). This is because WebServices require a token to work, and this token always belong to an authenticated user.

The app allows adding addons to several places of the app, but all of them are accessible only after the user has logged in. E.g. you could add your addon to the app's side menu, but the user needs to authenticate to be able to see the side menu.

The only place I can think of to add this feature for guests is in the credentials screen (after the user has entered the URL, but before he enters the username and password). The app doesn't allow remote addons in there, so you should create a custom app to achieve this.

Kind regards,

Dani