Search code examples
mobilegeolocationfirefox-os

Getting geolocation to work on ZTE Open C


it seems I can't get geolocation to work in FFOS 1.3.0. The default shipped "Here Maps" does Work but my App does not even ask for the Permission. The Code does work on my Notebook, here I'm asked for the Location which is then provieded. I Guess it's the fault of the manifest file though I don't know what exactly is the Problem.

    {
  "version": "1.0",
  "name": "Example",
  "description": "Example",
  "launch_path": "/index.html",
  "icons": {
    "16": "/images/icon_016.png",
    "32": "/images/icon_032.png",
    "48": "/images/icon_048.png",
    "128": "/images/icon_128.png"
  },
  "developer": {
    "name": "Example",
    "url": "http://www.example.de"
  },
  "default_locale": "de",
  "type": "privileged",
  "permissions": {
    "geolocation": {
      "description": "Used to locate me"
    }
  }
}

Any help would be appriciated :)


Solution

  • I found the error. It seems to be needed to add

      "installs_allowed_from": [
        "*"
      ],
    

    to the manifest file. My app does no ask for the permission and displays the location. Thank you all for your help :)