Moodle for mobile

Mobile App not working after HTTPS

 
Picture of SECOMV EMARF
Mobile App not working after HTTPS
 

Hi, Folks,

I have a Moodle Mobile App installed on my Android 6.0. It was working fine for HTTP. 

When I changed to HTTPS (using Let's Encrypt certificate), it stopped working and now I get the error message "Detectado redirecionamento não suportado. A execução do script foi cancelada" (Non-supported redirecting. Script execution aborted).

It works fine on Chrome desktop.

Any ideas about what is going on?

My Moodle version is 3.4.1 with the latest patch installed.

Thank you very much.

Regards,

Luiz

 
Average of ratings: -
Picture of SECOMV EMARF
Re: Mobile App not working after HTTPS
 

Hi, Folks,

I took the comment from the parameter $CFG->sslproxy = true in the config.php file and now I can see the login and password fields.

When I try to connect I get the message: "Não é possível conectar-se: Verifique se digitou a URL corretamente e se seu site usa o Moodle 2.4 ou posterior" (Cannot Connect: Verify that you have typed correctly URL and that your site uses Moodle 2.4 or later)

The URL was typed correctly and our Moodle is 3.4.1. 

Does anybody know what can be happening?

Thanks

Luiz


 
Average of ratings: -
Picture of Juan Leyva
Re: Mobile App not working after HTTPS
Core developersMoodle HQParticularly helpful MoodlersPlugin developersTesters

Hi,

do you have an HTTP or HTML redirection from http to https?

This is a typical problem, you must disable those kinds of redirections because the app is unable to follow redirections (there is a technical reason for that, and we can't solve it)

 
Average of ratings: -
Picture of SECOMV EMARF
Re: Mobile App not working after HTTPS
 

Hello, Juan,

There is the suggested redirection:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourmoodle.com/$1 [R,L]
Is this one you are mentioning? Could it be the reason? In case it is, what would you suggest?

Thank you.

Regards,

Luiz

 
Average of ratings: -
Picture of Juan Leyva
Re: Mobile App not working after HTTPS
Core developersMoodle HQParticularly helpful MoodlersPlugin developersTesters

Hi,

you should try first if disabling the redirection makes the app work, in some cases, you will have to disable it completely

 
Average of ratings: -
Picture of SECOMV EMARF
Re: Mobile App not working after HTTPS
 

Hi, Juan,

It was a problem in the certificate chain. The infrastructure guys repaired it and now I can log on.

Thank you very much for your help. I really appreciate.

Regards, 

Luiz


 
Average of ratings: -