Stuck at Connect to Moodle

Stuck at Connect to Moodle

Hảo Trần Văn -
回帖数:1
Recently, I downloaded mobile app source from https://github.com/moodlehq/moodleapp and tried to build and run locally. It worked when I tested with chrome browser although there're some error in console (note: my site didn't set up SSL but I don't know why they request to https://...)
Console errors when testing with browser
but it could navigate to login site and go to my site.
When I tried to build APK file using PhoneGap build and install it on BlueStack, it stuck at this page:

Stuck at this page
I tried with different site like https://school.moodledemo.net/, it didn't work as well when I click on "Connect to your site", nothing happen. I enabled debug at mode Developer but it didn't show me anything.
Please give me some advises for how to debug and fix it. (my moodle mobile version is 3.9.1)
回复Hảo Trần Văn

Re: Stuck at Connect to Moodle

Dani Palou -
Core developers的头像 Moodle HQ的头像 Peer reviewers的头像 Plugin developers的头像
Hi,

the problem is probably caused by the WebView plugin. We're using the Ionic Webview plugin for iOS (it's mandatory to be able to publish the app), and unfortunately Cordova doesn't let us install a plugin only for one platform so it's installed for Android too and it causes problems. We have an open issue to fix that (we had to fork the plugin):

https://tracker.moodle.org/browse/MOBILE-3471

Please try to run these commands and try again:

ionic cordova plugin remove cordova-plugin-ionic-webview
ionic cordova plugin add https://github.com/moodlemobile/cordova-plugin-ionic-webview#500-moodle

Cheers,
Dani