CordovaFirefoxOS: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(compass and capture info added)
Line 29: Line 29:
|-
|-
| [http://cordova.apache.org/docs/en/2.7.0/cordova_media_capture_capture.md.html#Capture Capture]
| [http://cordova.apache.org/docs/en/2.7.0/cordova_media_capture_capture.md.html#Capture Capture]
|
| [https://developer.mozilla.org/en-US/docs/WebAPI/Web_Activities WebActivities]
| TBD
| The main differences are in the object returned to the callbacks, some on-the-fly transition will be needed.
|-
|-
| [http://cordova.apache.org/docs/en/2.7.0/cordova_compass_compass.md.html#Compass Compass]
| [http://cordova.apache.org/docs/en/2.7.0/cordova_compass_compass.md.html#Compass Compass]
|
| [https://developer.mozilla.org/en-US/docs/Web/Reference/Events/deviceorientation deviceorientation]
| TBD
| FirefoxOS provides support as an event. Use <code>absolute</code> parameter to check if the device is able to provide the Earth coordinate frame 
|-
|-
| [http://cordova.apache.org/docs/en/2.7.0/cordova_connection_connection.md.html#Connection Connection]
| [http://cordova.apache.org/docs/en/2.7.0/cordova_connection_connection.md.html#Connection Connection]

Revision as of 12:46, 19 July 2013

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