CordovaFirefoxOS

Revision as of 12:46, 19 July 2013 by Zalun (talk | contribs) (compass and capture info added)

This page is to document the development of Cordova for FirefoxOS. It is edited quite often, co

General issues

Security Exception when iterating over window.navigator

Comparing APIs

Cordova FirefoxOS Differences
Accelerometer devicemotion, DeviceMotionEvent.acceleration TBD
Camera WebActivities, Pick image example FirefoxOS is providing access to pictures via WebActivities. Usage is fairly simple and an example is already working. However full support of Cordova API will be hard (or impossible) to implement. The problematic parts are specified in cameraOptions:
  • defining the source of the picture in code
  • forcing encode type
  • target size
  • camera direction
Capture WebActivities The main differences are in the object returned to the callbacks, some on-the-fly transition will be needed.
Compass deviceorientation FirefoxOS provides support as an event. Use absolute parameter to check if the device is able to provide the Earth coordinate frame
Connection TBD
Contacts WebAPI/ContactsAPI There are lacks in FxOS documentation of Contact fields (impp, url, address). Some fields are not exactly corresponding to each other. FxOS has an ability to save only one organization. Cordova has no info about (anniversary, sex, genderIdentity)
Device TBD
Events TBD (some of these will require a separate row in this table)
File TBD
Geolocation TBD
Globalization TBD
InAppBrowser TBD
Media TBD
Notification.alert window.alert There is a need for a new function which will be asynchronous and support changing title and buttonName
Notification.confirm window.confirm There is a need for a new function which will be asynchronous and support changing title and buttonLabels
Notification.prompt window.prompt There is a need for a new function which will be asynchronous and support changing title and buttonLabels
Notification.beep TBD
Notification.vibrate Vibration None
Splashscreen TBD
Storage TBD