Moodle Android App fails to connect to my moodle site...

Moodle Android App fails to connect to my moodle site...

by MD Idiake -
Number of replies: 11

Hi.

The above header refers.

My moodle site URL is: http://softworldng-001-site9.etempurl.com.

I have checked all the issues listed below and they are as was advised, yet the app still cannot connect to my site.


Assuming you have enabled mobile services on your site, please check:

1. If your site uses an SSL certificate, it must be a trusted certificate, not self-signed. Please use these tools or a similar one to check that your certificate is fine: SSL Checker and SSL Server Test. All the checks must be ok, including the "Certificate Chain Complete". Otherwise the app might work on iOS but not on Android.
2. Debugging is disabled (in Site administration > Development > Debugging)
3. The ADOdb debug option is disabled if you are using the external database auth or enrolment plugin (in Plugins > Authentication > External database and in Plugins > Enrolment > External database).
4. SHA-1 https certificates are not supported anymore in Chrome, this means that the Android version of the app won't work for your site. If your site doesn't work in desktop Chrome or Chromium it won't work in the Android app. See https://blog.chromium.org/2014/09/gradually-sunsetting-sha-1.html for more information
5. If you are using IIS check that Anonymous access is not disabled for the /webservice directory.
If you still have a problem, please post in the Moodle for mobile forum.
I am using SmarterASP.net as my hosts.

So, what do I do next?

Thanks.

MD Idiake

Average of ratings: -
In reply to MD Idiake

Re: Moodle Android App fails to connect to my moodle site...

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

could you send us a test user account of your site to mobile@moodle.com? Please, reference this post in the email body

Juan.

In reply to MD Idiake

Re: Moodle Android App fails to connect to my moodle site...

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Thanks for the credentials,

I'm able to connect to your site using 2 different Android devices. Which device and Android version are you using? Can you connect with the test account you sent to us?

Kind regards,

Dani

In reply to Dani Palou

Re: Moodle Android App fails to connect to my moodle site...

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

For the record, MD Idiake contacted me via private message, he's now able to login.

In reply to Dani Palou

Re: Moodle Android App fails to connect to my moodle site...

by Balja Bp -

Hi

I have the same problem,

How did you decide?

In reply to Balja Bp

Re: Moodle Android App fails to connect to my moodle site...

by Raymond Mlambo -

I also have the same issue. I cannot connect to the site

In reply to Raymond Mlambo

Re: Moodle Android App fails to connect to my moodle site...

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Please, read carefully the Moodle FAQ:
https://docs.moodle.org/en/Moodle_Mobile_FAQ

typical issues are described there
In reply to Juan Leyva

Re: Moodle Android App fails to connect to my moodle site...

by Gopakumar Velukkutty -
I am using moodle 3.4.
For moodle-mobile app, when tried to login I get an error Cannot connect: verify that I you have correctly typed the URL and that your site uses Moodle 2.4 or latter.
Mobile services are enabled for the site.
The user is entering the correct URL.
SSL the certificate is valid.
I am able to create a new user through moodle-mobile app.
Please help me to solve this problem.
In reply to Juan Leyva

Re: Moodle Android App fails to connect to my moodle site...

by Ahmed Attar -

I am customizing the App, and it gives me an endless authentication screen, Thanks a miilion.

In reply to Ahmed Attar

Re: Moodle Android App fails to connect to my moodle site...

by Ahmed Attar -
Update, I can log to the website from the official moodle application, so the website is working perfect.
In reply to Ahmed Attar

Re: Moodle Android App fails to connect to my moodle site...

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Ahmed,

looking at the screenshot it seems you're using the V1 version of the app, and that's really old. You should use this repository:

https://github.com/moodlehq/moodleapp/

Also, take a look at this guide:

https://docs.moodle.org/dev/Setting_up_your_development_environment_for_Moodle_Mobile_2

Cheers,
Dani
In reply to Dani Palou

Re: Moodle Android App fails to connect to my moodle site...

by Ahmed Attar -
Hi Dani,

Thank you so much for your reply, I discovered this by chance yesterday when I read the thread of the change.
But still, there is something wrong with the new tutorial, it gives me dead white screen after I trying to fix the "Can't find file:///android_asset/www/index.html" and the provisioning as well

if you can recommend a more detailed tutorial, this would be awesome smile

Thanks a million