Moodle Mobile Custom App Site URL

Re: Moodle Mobile Custom App Site URL

by Deepak B S -
Number of replies: 4

Hi Juan,

I have made the customization according to the directions given. The Logo, Screen and Name has changed. Now i have a requirement which i cant figure out: -  to change the page which asks for site url. I want the app to directly land at the login page of the moodle site.

I have edited the config,json

Here is the Code.

================================

    "app_id" : "com.moodle.elms",

    "appname": "ELMS",

    "versioncode" : "2017",

    "versionname" : "3.2.0",

    "cache_expiration_time" : 300000,

    "default_lang" : "en",

    "languages": {"ar": "عربي", "bg": "Български", "ca": "Català", "cs": "Čeština", "da": "Dansk", "de": "Deutsch","en": "English", "es": "Español", "es-mx": "Español - México", "eu": "Euskara", "fa": "فارسی", "fr" : "Français", "he" : "עברית", "hu": "magyar", "it": "Italiano", "ja": "日本語","nl": "Nederlands", "pl": "Polski", "pt-br": "Português - Brasil", "pt": "Português - Portugal", "ro": "Română", "ru": "Русский", "sv": "Svenska", "tr" : "Türkçe", "zh-cn" : "简体中文", "zh-tw" : "正體中文"},

    "wsservice" : "moodle_mobile_app",

    "wsextservice" : "local_mobile",

    "gcmpn": "694767596569",

    "customurlscheme": "moodlemobile",

"presets" : {"url": "http://elms.mysite.in/moodle/login/index.php", "username": ""},

    "siteurl": "http://elms.mysite.in/moodle/login/index.php",

"skipssoconfirmation": "false",

    "forcedefaultlanguage": "false"

======================================

Can u guide me on what changes to make to automatically redirect to the login page.

Please Guide.

In reply to Deepak B S

Re: Moodle Mobile Custom App Site URL

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

your config file seems to be fine, the siteurl is the only thing you need to force a site URL.

Maybe you are not rebuilding correctly the project? check that you don't see any errors when you run ionic serve (or when you execute gulp)

Juan

Average of ratings: Useful (1)
In reply to Juan Leyva

Svar: Re: Moodle Mobile Custom App Site URL

by Patrik Lindqvist -

Hi Juan

I'm having the same problem. When the app is rebuilt (no errors) and tested I get to the first page where to put in the url for the site instead of straight to the login. I use the same code as Deepak. Is this a common problem or is there some sort of solution? Please advice how to proceed.

{
"app_id" : "com.fotokurs-online.mobile",
"appname": "Fotokurs by Mästerfoto",
"versioncode" : "20170",
"versionname" : "1.0",
"cache_expiration_time" : 300000,
"default_lang" : "sv",
"languages": {"ar": "عربي", "bg": "Български", "ca": "Català", "cs": "Čeština", "da": "Dansk", "de": "Deutsch","en": "English", "es": "Español", "es-mx": "Español - México", "eu": "Euskara", "fa": "فارسی", "fr" : "Français", "he" : "עברית", "hu": "magyar", "it": "Italiano", "ja": "日本語","nl": "Nederlands", "pl": "Polski", "pt-br": "Português - Brasil", "pt": "Português - Portugal", "ro": "Română", "ru": "Русский", "sv": "Svenska", "tr" : "Türkçe", "zh-cn" : "简体中文", "zh-tw" : "正體中文"},
"wsservice" : "moodle_mobile_app",
"wsextservice" : "local_mobile",
"gcmpn": "694767596569",
"customurlscheme": "moodlemobile",
"presets" : {"url": "http://www.fotokurs-online.se/login/index.php", "username": ""},
"siteurl": "http://www.fotokurs-online.se/login/index.php",
"skipssoconfirmation": "false",
"forcedefaultlanguage": "false",
"privacypolicy": "https://moodle.org/mod/page/view.php?id=8148"

}

Regards, Patrik

In reply to Patrik Lindqvist

Re: Svar: Re: Moodle Mobile Custom App Site URL

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

Unfortunately our core team do not have the resources here to help people use the open source code version to build custom apps. We provide a service where we can customise the app for anyone who needs it including the Push notifications (Airnotifier) service management. This service helps fund the improvement of the app in general: https://moodle.com/mobileapp/

I’d recommend you to check the documentation links that are available in the Forum main page or hopefully somebody else in this forum will be able to help you.

Juan