Moodle for mobile

siteurl in config.json

 
Picture of Salim BOUDRAA
siteurl in config.json
 

when I fix site url in config.json to my moodle site address the mobile app stand on splash screen after launching ??

anyone can help me to solve this error ?? plz

thanks

 
Average of ratings: -
Picture of behnaz ranjbar
Re: siteurl in config.json
 

hi,

can you give more information? are you using local moodle or not? could you write the url that you have written there?

 
Average of ratings: -
Picture of Nivesh Krishna
Re: siteurl in config.json
 

Hey,

Were you able to solve this issue? I'm stuck at the exact same point. Please let me know if you had found any solution for this.

 
Average of ratings: -
Picture of Salim BOUDRAA
Re: siteurl in config.json
 

hi there 

I resolved the probleme by installing ionic 2.2.3 and cordova 6.5.0 by excuting the command :

npm install -g ionic @2.2.3 cordova@6.5.0 

but first of all you have to uninstall the previos version of ionic and cordova installed on you computer, you have just to execut this command :

npm uninstall cordova ionic 


thank you and good luck


 
Average of ratings: Useful (2)
Picture of Dani Palou
Re: siteurl in config.json
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi everyone,

sorry for the delay in answering, it's been some crazy months lately.

The siteurl should work fine with Ionic 3, at least it does for us. I recommend leaving the repo as it is and try to install the app in the device, to check if it works that way. If it doesn't then it's not siteurl's fault smile

Cheers,

Dani

 
Average of ratings: -
Picture of Asad Nauman Shahid
Re: siteurl in config.json
 

Hi Dani,

Can we define more than one sites in siteurl? Purpose is to restrict user to a few specific sites only.


Regards, 
Asad

 
Average of ratings: -
Picture of Dani Palou
Re: siteurl in config.json
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi,

yes, you can specify a list of sites. Just put an array in "siteurl", and each entry should have a "name" and a "url".

Cheers,

Dani

 
Average of ratings: -