• 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 APIs
  5. MozMobileConnection
  6. MozMobileConnection.sendMMI()

MozMobileConnection.sendMMI()

In This Article
  1. Summary
  2. Syntax
    1. Parameters
    2. Return
  3. Specification
  4. See also

This API is available on Firefox OS for internal applications only.

Summary

The sendMMI method is used to send an MMI code.

Syntax

var request = navigator.mozMobileConnection.sendMMI(message);

Parameters

message
A string representing an MMI code that can be associated with a USSD request or other RIL functionality.

Return

A DOMRequest object to handle the success or error of the method call.

In cases where the MMI code requires sending an USSD request, the request's success means that the RIL has successfully processed and sent the USSD request to the network. The network reply is reported via the MozMobileConnection.onussdreceived event handler. If the MMI code is not associated with a USSD but with another RIL request, its result, if one is needed, is sent via the returned request's success or error.

Specification

Not part of any specification.

See also

  • MozMobileConnection
  • MozMobileConnection.onussdreceived
  • DOMRequest

Document Tags and Contributors

Tags: 
  • API
  • B2G
  • Firefox OS
  • Method
  • Mobile
  • Non Standard
  • Reference
  • Référence
 Contributors to this page: chrisdavidmills, fscholz, kscarfone, Sheppy, jswisher, Jeremie
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:07:53 AM
See also
  1. Mobile Connection API
  2. Archive
  3. Events
    1. icccardlockerror
    2. cardstatechange
  4. Related pages for Mobile Connection API
    1. CFStateChangeEvent
    2. DataErrorEvent
    3. IccCardLockError
    4. IccCardLockErrorEvent
    5. MozCellBroadcastEvent
    6. MozEmergencyCbModeEvent
    7. MozIccManager
    8. MozMobileCFInfo
    9. MozMobileCellInfo
    10. MozMobileConnection
    11. MozMobileConnectionInfo
    12. MozMobileICCInfo
    13. MozMobileNetworkInfo
    14. MozOtaStatusEvent
    15. MozStkCommandEvent
    16. USSDReceivedEvent