Thanks a lot Daniel.
We did everything as you said and it works perfectly except for one thing: main.js modification for skipping URL screen.
Can you have a look at our core/components/login/main.js
.state('mm_login.sites', {
url: '/sites',
templateUrl: 'core/components/login/templates/sites.html',
controller: 'mmLoginSitesCtrl',
onEnter: function($state, $mmSitesManager) {
// Skip this page if there are no sites yet.
$mmSitesManager.hasNoSites().then(function() {
$state.go('mm_login.site');
});
}
})
.state('mm_login.site', {
url: '/site',
templateUrl: 'core/components/login/templates/site.html',
controller: 'mmLoginSiteCtrl'
onEnter: function($state){
$state.go('mm_login.credentials', {siteurl: 'http://***********.co.in'});
}
})
and see where we went wrong? We also followed some instructions of yours from https://moodle.org/mod/forum/discuss.php?d=318362 (Here I also would like to mention here that the code you suggested is slightly different from Juan's. His had 4 arguments in the function, yours had 2 only.)