Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all,
Vanilla are planning an update to the site on April 24th (next Wednesday). It is a major PHP8 update which is expected to boost performance across the site. The site will be down from 7pm and it is expected to take about an hour to complete. We appreciate your patience during the update.
Thanks all.

[FirefoxOS] Geolocation on android

Options
  • 29-05-2014 5:41pm
    #1
    Registered Users Posts: 1,931 ✭✭✭


    I made an app (or a webpage + manifest.webapp file, whatever) that needs geolocation. It all works fine from a browser or from firefoxos simulator, but I can't make it work on android as an application. It works fine when opened on firefox for android, but not when opened from firefox->tools->apps.

    The page is here: http://geofinder.eu
    The manifest file: http://www.geofinder.eu/manifest.webapp

    Any idea how can I make the goelocation work on android? The app opens, but never gets the information about the location. May it be that geolocation doesn't work because the application is not yet publicly listed on the mozilla market?


    P.S. It's an alpha release, so the application is still rough on the edges, doesn't work in the background and doesn't update location without refreshing on the viewer side. It might also eat your dog and do other nasty things.


Comments

  • Registered Users Posts: 18 jonster


    What is this wizardry?! Sorry I'm not sure what platform/language/framework within which you're working, anymore details available? This is an extremely straightforward problem using a native solution, I'd hazard to say Google android Dev site even provides the solution in its code snippets.
    More info please


  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    :) There is no magic! I'll try to give a detailed explanation without going into details :)

    FirefoxOS [1] is a stand alone system. But the applications for firefoxOS can be easily run on android devices (install firefox and you have it) or on linux boxes (gnome supports it). On top of that a hosted apps (there are also packaged apps, more here [3] ) are simply webpages + manifest file. That's exactly my case. So by providing a manifest file (+ icons) I can turn a webpage into an application that can be installed on android, linux (gnome) or probably anything that firefox browser can run on.
    I'f you are using windows try to install firefox and type "about:app-manager" as address - that's the starting point.

    Technologies used: html5, css, javascript, php. The complete code is here [2]

    I may end up using native android, but current solution can be run on 3 systems without porting + I don't have to learn how to write app for android..

    [1] http://en.wikipedia.org/wiki/Firefox_OS
    [2] https://github.com/PrzemoF/geofinder
    [3] https://developer.mozilla.org/en-US/Apps/Quickstart/Build/Your_first_app


  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    jonster, if you're OK with writing open source code there are more details here what I want to do:

    http://www.boards.ie/vbulletin/showthread.php?t=2057188741


Advertisement