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! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

[FirefoxOS] Geolocation on android

  • 29-05-2014 5:41pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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