-
Notifications
You must be signed in to change notification settings - Fork 12
MMI support in Telephony API #206
Comments
A few background links: The way e.g. oFono handles it: If I understand right, the question is whether could we have a single "magical" method to which we give whatever the user types in, and which would determine whether the string is a number (i.e. call 'dial'), or a USSD/MMI string, etc. The problem is that parsing MMI at app level is asking too much from apps. |
I propose we define the supported use cases in more detail. This also affects UX design, so we should NOT make assumptions about UX, but we have to take examples for the use cases. So, consider the following use case:
Hence, we need a method to check input strings against supported codes, also usable for validation (called after each typed in character). The method would return the supported list of classifications, which could be: "emergency" (even broken down eventually to "emergency-police", "emergency-fire", "emergency-health", etc), "standalone-mmi", "send-mmi", "unknown" (or equivalent integer enums). The recommendation for dialer applications could be the following:
This proposal still requires some logic to be implemented in the apps, but offloads the burden of parsing all codes. In the same time it enables UX choices, which would not be possible if the checks were done within one single dispatching method (e.g. dial()) behind the scenes. However: for also supporting that use case, we could add a boolean DialOptions property for telling the implementation that dial() should interpret e.g. MMI, with a default value "false". If set to "true" when dial() is called, then the implementation would return error when this is not implemented, otherwise execute the steps 2.*. What do you think? |
Hi there,
I am opening this issue for discussing MMI support.
In Mozilla API, we have mozMobileConnection.sendMMI() to address MMI command. Having separate sendMMI() and dial() functions is good for context, but we realize that with separate APIs, the app, API user, needs to parse an input string following 3GPP spec. 22.030 before making a correct choice of API usage, dial() or sendMMI().
The argument being discussed is:
Do we want our API user to take care of the 3gpp specification themselves, i.e. doing the MMI parsing stuff? If not, then unifying dial() and sendMMI() seems a possible solution?
Please visit [1] to see mozilla discussion threads.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=889737
The text was updated successfully, but these errors were encountered: