Configuring uMobile
There are some necessary configuration edits that will need to be made to get uMobile working. These can all be found in config.js, which at the time of this writing is located in <project root>/Resources/js/config.js. The required configuration edits are:
Name |
Type |
Description |
---|---|---|
BASE_PORTAL_URL |
String |
The base URL to the server with uPortal (& other services). eg: |
PORTAL_CONTEXT |
String |
The path, appended to BASE_PORTAL_URL, to access uPortal. eg: |
SERVER_SESSION_TIMEOUT |
Integer |
The time, in seconds, that a session will remain alive. eg: |
LOGIN_METHOD |
String |
(reference to static constant in LoginProxy). References the method used to log user's in to the application, such as CAS or LocalLogin. eg: |
ENCRYPTION_KEY |
String |
Used to encrypt/decrypt user's password stored in the local sqlite database. eg: |
FORGOT_PASSWORD_URL |
String |
Path to direct users to in a browser to recover their password. eg: |
MAP_SERVICE_URL |
String |
URL used to load map JSON data for the map module. eg: |
DIRECTORY_SERVICE_URL |
String |
URL used to perform searches for users from the directory module. eg: |
Optional parameters include:
Name |
Type |
Description |
---|---|---|
CAS_URL |
String |
URL to access cas login service. eg: |
LOCAL_MODULES |
Array |
Contains objects to be included in native app that either override existing portlets, or are only available in the native app. eg: |
DEFAULT_MAP_REGION |
Object |
Tells the map the default area to pan/zoom to when loaded. eg: {{{ latitude: 34.052819, longitude: -118.256407, latitudeDelta: 0.005, longitudeDelta: 0.005 }}} |
nativeIcons |
Array |
Associative array indexed by fnames of modules, to override the icons returned from the portal with local icons optimized for device resolutions. eg: |
directoryEmergencyContacts |
Array |
Contains objects containing emergency contact information to be displayed in home page of directory. eg: |
phoneDirectoryNumber |
String |
If defined, will display in the directory default view, and allow users to call the school's phone directory from the app. eg: |
Our community can help answer your questions
Create a jira issue for the developers
We welcome our community to assist with our documentation and development efforts.