How can I cache siteurl and others settings for moodlemobile-phonegapbuild

How can I cache siteurl and others settings for moodlemobile-phonegapbuild

by Dmitry Gorsky -
Number of replies: 3

I use moodlemobile-phonegapbuild fork and Adobe PhoneGap to build Mobile Aplication, but I cannot find how I can to change siteurl and othe settings in config.json (like moodlemobile2). Settings in config.json  are ignored.

Please help me.

Average of ratings: -
In reply to Dmitry Gorsky

Re: How can I cache siteurl and others settings for moodlemobile-phonegapbuild

by Alba Paola de la Cruz Solano -

It is because it is already compiled so ignore what you put in config.json, because you have the constants stored in the main.js file that is in build, there you are looking for CoreConfigConstants.siteurl = "", and you enter the address of your site. Although I had read that it should not be modified directly.

Average of ratings: Useful (2)
In reply to Alba Paola de la Cruz Solano

Re: How can I cache siteurl and others settings for moodlemobile-phonegapbuild

by Lewis Carr -
I concur with Alba, this is what I use also.
In reply to Alba Paola de la Cruz Solano

Re: How can I cache siteurl and others settings for moodlemobile-phonegapbuild

by Mohammad Nabil -
thank you
i tried it and it work perfect