Firefox OS/Vaani/Custom Command: Difference between revisions

(Update Development Plan and FAQ)
Line 78: Line 78:
Some of grammars will be generated dynamically, like OpenAction.
Some of grammars will be generated dynamically, like OpenAction.


==== Manifest change at dialer app ====
==== Manifest change at dialer/Vaani app ====


We will add the following style to dialer app.
We add the following settings to dialer app:


       "custom_commands": [{
       "custom_commands": [{
Line 86: Line 86:
         "@type": "DialAction",
         "@type": "DialAction",
         "target": {
         "target": {
           "activity": {
           "@type": "WebActivity",
            "name": "dial",
          "name": "dial",
            "data": {
          "data": {
              "type": "webtelephony/number",
            "type": "webtelephony/number",
              "number": "@number"
            "number": "@number"
            }
           }
           }
         }
         }
Line 97: Line 96:




Since we don't have NLP, we use predefined action for this case. All variables are also predefined. The variable @number will be replaced with the recognized number in this case.
We add the following settings to Vaani app:
 
      "custom_commands": [{
        "@context": "http://schema.org",
        "@type": "OpenAction",
        "object": "SoftwareApplication",
        "target": {
          "@type": "WebActivity",
          "name": "open-app",
          "data": {
            "type": "webapp",
            "manifest": "@manifest",
            "entry_point": "@entry_point"
          }
        }
      }]
 
 
Since we don't have NLP, we use predefined action for this case. At this version, we support DialAction and OpenAction. All variables of these two actions are also predefined. The variable @number will be replaced with the recognized number in this case. The @manifest and @entry_point will be replaced with app's manifest and entrypoint.
 
Since there is no one handles open-app activity, we also add open-app activity to Vaani app.


= Development Plan =
= Development Plan =
Confirmed users
209

edits