forked from jleyva/umm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
129 lines (63 loc) · 4.25 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
== Description ==
This is an unofficial clone of the Moodle Mobile app for iPhone that works on Android and Blackberry devices.
It should work also on iPhone and iPad.
This application is intended and has been designed to be easily customizable by Institutions (University, corp..). This application uses common web technologies (HTML5 + CSS3 + JavaScript) and the high level multiplatform mobile Javascript framework Phonegap.
Phonegap enables you to build your app once with web-standards and deploy to multiple platforms.
Please note that this app is not a replacement or improvement of the official app for iPhone (and Android when available). It has beend designed to be easily customizable and extendable using web technologies by anyone.
=== Technologies used: ===
* HTML5 + CSS3 + JavaScript
* Phonegap for packaging and access Mobile features
* jquery
* jquerymobile
=== Credits ===
Juan Leyva <http://twitter.com/#!/jleyvadelgado>
http://moodle.org/user/profile.php?id=49568
Catalan translation: Antonio Piedras (Universitat de Barcelona)
== Testing the app in a computer ==
=== OPTION 1 ===
Requeriments: Google Chrome browser + Ripple mobile enviroment emulator plugin (http://ripple.tinyhippos.com/)
You must run Google Chrome in Unsafe mode adding this params: --allow-file-access-from-files --disable-web-security
IMPORTANT: I strong recommend you to create a new link or application launch called "Google Unsafe" and use it only for testing the app
"Path to chrome\chrome.exe" --allow-file-access-from-files --disable-web-security
Open the index.html file in the Google Chrome unsafe and click on the Ripple icon to activate the emulator
Once opened in the Ripple settings block change Cross Domain Proxy to Disabled
Please note that some functionallities (camera, audio recording, contact) will not work in the emulator
=== OPTION 2 ===
Install the Android, BlackBerry or iPhone SDK and follow instructions in http://phonegap.com/start/
== Configuring Moodle for using the application ==
* Administration -> Plugins -> Web Services -> External Services -> Enable mobile web service
* Administration -> Plugins -> Web Services -> Protocols -> Enable REST
* Administration -> Users -> Permission -> Define roles -> Edit the Authenticated user role -> Allow webservice/rest:use
* Administration -> Security -> Site policies -> Change the server upload limit. It can't be Server limit. There is a bug in Moodle Web Services see (http://tracker.moodle.org/browse/MDL-30496)
== Building this app for iPhone ==
You need to create a certificate in a Mac computer to sign the app
Please, read the section "Customizing your own app" bellow
Note also that for distributing your app you must add it in the app store.
== Customizing your own app ==
=== Application name and description ===
Edit the config.xml file
=== Application icon ===
Replace the icon*.png files with your custom icons (PNG 32bits)
You can add also more icons if you mobile supports it editing the config.xml file
=== Style sheet ===
Create your own CSS
Include this CSS in all the files you want to customize
=== Packaging the app for Android, Blackberry and iPhone ===
Crete a free account in https://build.phonegap.com/
Upload a zip with all the contents of your custom app
That's all, Phonegap Build do all the steps required
'''IMPORTANT: The files names cannot containts these chars: - or _'''
== Extending the app ==
The app works as a mini HTML site, it is very easy to add custom pages. Just add new pages and create links between the new and old pages.
It's very easy also add new pages that consumes MoodleWebServices (there is a high level API for making Moodle WS Calls)
If you want integrate your app with your mobile device (accelerometer, camera, compass, contacts, gps) you can use de Phonegap API
http://www.phonegap.com/
== Known bugs and issues ==
Course contents visualization do not work offline
Contacts are saved in your Google account contacts (Android) This is a Phonegap bug
Profile users image are not displayed (This is a Moodle issue) See http://tracker.moodle.org/browse/MDL-30495
== Screenshots ==
See this post: http://moodle.org/mod/forum/discuss.php?d=191144
[[Category: Contributed code]]
== See Also ==
[http://moodle.org/plugins/view.php?id=175 App download links]