Hello,
sorry if this has been discussed before but i've found no references in my
searches.
I work with Moodle, an open-source learning management system, for some
time and they have a pretty good mobile app that works on android and ios.
It's already a "webapp" (
https://github.com/moodlehq/moodlemobile) based on
jquery, phonegap etc.
So i think it should be easy to port it to firefox os and start working on
it.
I've write a sample manifest file, added it to the app root folder and got
it on firefox os simulator running as a packaged app. The first screen
shows well, but then i've faced the problem.
This application ask me which Moodle site i want to visit, so i insert the
URL, my username and password and it should use the webservices to get to
the site and bring me the contents. But, with a packaged application i just
can't do it, because it is considered a cross domain request and altough i
can see in debugger and wireshark that my "POST" was submitted and server
responded correctly with 200 OK, the requests fails and fires the "onerror"
event. I've tested this with the Boiler Plate app (
https://github.com/robnyman/Firefox-OS-Boilerplate-App) and it fails too.
These apps also fail on my keon (running latest 1.1 stable from geeksphone
on it).
If i install the application as hosted from the same site i am serving
Moodle, it works ok, but then i would have to have one app for each Moodle
i have access to, and it is not really nice.
So, i would appreciate any advices on how to get this app working =)
Kind regards,
--
Daniel Neis Araujo