B2G/MarketCustomizations: Difference between revisions

Jump to navigation Jump to search
Line 479: Line 479:


=== Support contacts, default contacts, wallpaper & ringtone ===
=== Support contacts, default contacts, wallpaper & ringtone ===
The same file variant.json used to configure applications at runtime depending on the MCC/MNC, allows to configure specific resources by adding some attributes under each operator object. Thus, an operator can have the following settings:
  { apps: ...
    "operators": [
      {
        "id": "movistar-co",
          "mcc-mnc": [
            "214-01",
            "214-02"
          ],
        "apps": [
          {
            "id": "store",
            "screen": 0,
            "location": 2
          }
        ],
        "support_contacts": "resources/support_contacts_movistar.json",
        "default_contacts": "resources/contacts_movistar.json",
        "ringtone": {
          "path": "resources/Movistar_Mid_ABR_128kbps.ogg",
          "name": "Tono Movistar"
        },
        "wallpaper": "resources/customize.jpg"
      },
      ...
  }
So, for each operator:
* support_contacts: path to a file containing contacts shown at help screen (Settings -> help). The file format is:
  {
    "onlinesupport": {
      "title": "Mozilla Support",
      "href": "http://test.mozilla.org/support"
    },
    "callsupport1": {
      "title": "Call Support (Primary)",
      "href": "tel:14155550001"
    },
    "callsupport2": {
      "title": "Call Support (Secondary)",
      "href": "tel:14155550002"
    }
  }
* default_contacts: path to the file containing contacts that will be preloaded to the contacts application. Same format as [https://wiki.mozilla.org/B2G/MarketCustomizations&section=26#contacts.json contacts.json]
* ringtone: object with two attributes, both mandatory. This object sets the default ringtone.
** path: path to the ringtone sound file.
** name: name shown in settings for the ringtone.
* wallpaper: path to image file (PNG) that will be set as a default wallpaper.


== Preload webapp ==
== Preload webapp ==
Confirmed users
9

edits

Navigation menu