Coder Social home page Coder Social logo

GPS / Location support about webpirate HOT 5 OPEN

smurfy avatar smurfy commented on August 31, 2024
GPS / Location support

from webpirate.

Comments (5)

Dax89 avatar Dax89 commented on August 31, 2024

Ok, I will implement it, thanks for reporting!

from webpirate.

Dax89 avatar Dax89 commented on August 31, 2024

Geolocation is unsupported in QtWebKit, I can't implement this feature.
navigator.geolocation object in "undefined"

from webpirate.

smurfy avatar smurfy commented on August 31, 2024

I'm no webkit expert and also don't know the performance impact, but its possible to inject additional objects to a webkit instance,

So in theory it should be possible to set navigator.geolocation with a custom js object.

I also found this: https://together.jolla.com/question/17380/html5-geolocation-in-webview/

I understand if you dont implement this feature. If i find the time i will do a quick test, to figure out if its possible using javascript injects.

from webpirate.

Dax89 avatar Dax89 commented on August 31, 2024

I've already tried to inject a custom made Geolocation object :)
It works only if "navigator.geolocation" is called before "onload" event, but it fails when this one is invoked before that event (for example, inside a <head> tag), that's the case of 99% of websites.

The link on Jolla Together mentions Qt WebEngine that uses Blink and replaces and aging QtWebKit, this library is available in Qt >= 5.4

If someone finds a way to inject custom objects in a WebKit instance, globally, it would be great.

I want to implement all features requested here, but QtWebKit is very limited and sometimes is simply not possible (in fact I'm leaving those issues opened).

As I said in issue #30, I'm working on an experimental version of WebPirate that uses Chromium Embedded, in that case I can implement Geolocation and more :)

from webpirate.

smurfy avatar smurfy commented on August 31, 2024

yea, useing chromium embedded or Qt WebEngine would be the better solution.

from webpirate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.