I have enabled web services in a test moodle 2.2 installation, but get the following error when trying to point the iPhone app at it:
ERROR. Couldn't connect: the site must be Moodle 2.1 or later
It's saying v2.2.2 in the Server > Environment page, and all the checks on that page pass OK. I checked the Mobile web service is working in the Authentication methods page. What else am I missing? I checked the Enable tickbox on our live moodle (v2.1) and that works fine. But I'm aware you need minimum 2.2 to see resources on a course page, as less than that functionality doesn't seem really useful to me.
Thank you for calling attention to this because I have been searching all my settings trying to find out why I wasn't able to use it.
My Moodle environment is "locked" from outside access because it's a test a test environment. Are you in the same situation or is yours open and available?
Frank, port 80 is open to the outside world on that server anyway as it runs another service on the same apache installation which works fine. I wondered if there was something deeper.
Moodle core/mobile feature/iPhone app developers - is there any logging at the server or app end that might help diagnose where the fault lies?
this error appears when an error is returned by the token.php script. Actually we should add some kind of debug mode on the app to help admin to test the app. Many different errors are returned to the app and the app just display one unique error message.
You could check all the following points, it is most likely something going wrong there: http://docs.moodle.org/22/en/Web_services_FAQ#What_is_the_.27Access_control_exception.27_error
Note that many of these points should be valid when you enable the mobile service in the admin.