• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS add-ons

B2G OS add-ons

In This Article
  1. Prerequisites
    1. 1. Enable USB Debugging
    2. 2. Set up WebIDE
  2. See also
    1. Developing
    2.  Get involved

Note: B2G OS add-ons are based on the WebExtensions API, which is also supported in Firefox desktop starting with version 42 and is based on the extension APIs used in Chrome and Opera.

Prerequisites

You should follow the below steps to get set up to start developing extensions.

 

1. Enable USB Debugging

 

In the Settings app on the device, select Developer > Debugging via USB > ADB and Devtools.  You should now be able to debug installed apps using WebIDE, either via a USB cable, and over Wifi (no USB cable required.)

2. Set up WebIDE

The WebIDE tool is part of Firefox and can be used to install add-ons on your phone during development — see Testing your add-on using WebIDE for more information.

See also

Developing

  • Tutorial: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Add-ons/Developing_Firefox_OS_add-ons
  • In-depth example: https://hacks.mozilla.org/2015/11/building-an-ios-style-unread-notifications-add-on-for-firefox-os/
  • API reference: https://developer.mozilla.org/en-US/Add-ons/WebExtensions

 

 Get involved

 

  • Mailing list: https://mail.mozilla.org/listinfo/dev-fxos
  • Discourse forum: https://discourse.mozilla-community.org/c/add-ons/development
  • IRC:  irc.mozilla.org, #webextensions and #fxos
  • Let us know what new APIs we should prioritize: https://webextensions.uservoice.com/forums/315663-webextension-api-ideas
  • Follow us on Twitter: @MozWebExt

Document Tags and Contributors

Tags: 
  • Add-ons
  • Apps
  • customizations
  • Extensions
  • Firefox OS
 Contributors to this page: chrisdavidmills, kskarthik, VISWAPRASATH, motiongeek, Sheppy, mikehenrty, maybe, jryans, BobChao, fwenzel, dsherk
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:24:50 AM