The WebAPI offers many different interfaces to perform various useful tasks. These are writing in JavaScript and can vary from sensor readings to graphic engines.
Check this comprensible table with permissions on the Firefox OS archive or this table in the Mozilla wiki.
¶ Hardware and Sensors
- Geolocation: uses a mixtue of cellular network data, GPS data, and/or Wi-Fi data to obtain your current geographic position.
- Device Storage: access the file system, most notably the internal memory and SD card of the device.
- Keyboard Events: basically old
keydown
and keyup
, with some gotchas.
- Notification: allow sending system notifications to the end user.
- Alarm: allows applications to schedule actions to be run in the future.
- Fullscreen: request fullscreen temporary.
- App management: list, install, uninstall and open apps
- Daemon APIs: these APIs are provided in a non-standard way by the
api-daemon
, which is separate from Gecko and allows using native functionality from webapps