Dear Juan,
Thank you very much for your reply. I add “siteurl:”https://mysite.com”” in config.json file as well as remove the URL of “demo_sites”. However, after I convert the code from Phonegap Build, it still asks users to type in Moodle site URL.
What I do for the code is following:
1. Download the MM2.7 code released in from github in “iOS” branch (https://github.com/moodlehq/moodlemobile-phonegapbuild)
2. Add “siteurl:”https://mysite.com”” in config.json file, and remove the URL of “demo_sites”. The following is a screen shot of the config.json file after I do the changes. Also I use the Moodle official demo site as the pre-populated URL.
3. Then I convert the code in Phonegap Build, as I always do for Moodle mobile app 2.3 and 2.5. I convert the app for iOS device. But the app in both of the devices ask users to type in Moodle site URL.
4. According to the PPT you post online, I also need to replace ‘http://mymoodle.com’ with my Moodle site URL in www/core/components/login/main.js. However, when I open the code I download from Github, there is no ‘http://mymoodle.com’.
After do the changes above, I also open the app on Google Chromium browser. It also asks me to type in Moodle URL.
In addition, when checking in Google Chroium developer tool, it has an error, as showing below.
I really appreciate this new function you developed and hope it can work in the Moodle app in my institution. As you may know, there are some bugs when hard coding the Moodle site URL to pre-populating the site URL, such as chat and choice activities are not intergrated with the app until cleaning the cache. It becomes a big problems now, since a number of students are using choice activities in the app for optional course choosing for the second semester. I really hope that you can reply me about how to use the new feature to pre-populating the site URL in config.json file.
I am looking forward for your reply. Thank you for your support again.