We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

HTML5 Geolocation in WebView

asked 2014-01-20 11:16:18 +0300

TuukkaH gravatar image

I haven't found a way to enable HTML5 geolocation (navigator.geolocation is missing and no setting to enable it) in WebView, although it is enabled in the browser application. Is this currently possible, and if not, is it on the roadmap?

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-01-20 11:36:16 +0300

veskuh gravatar image

updated 2014-01-20 11:37:08 +0300

Browser uses different engine than Silica WebView.

There are many HTML5 features unsupported (like geolocation) in WebView and we have not planned to add more functionality to current WebView. There are couple of reasons for this. Firstly, it is based on QtWebkit, which is deprecated in Qt5 and will be replaced by chromium based QtWebEngine. After the QtWebEngine reaches Qt upstream and matures we start to evaluate which HTML5 technologies to integrate and schedule for those. The other reason has been that we want to get HTML5 running on browser as well as possible before using too much time on WebView.

I suggest using native means to acquire location information for your application.

edit flag offensive delete publish link more

Comments

When native location information works, it can be used to patch navigator.geolocation even into current WebKit. Discussion regarding status of native location: Support for QtPositioning & QtLocation APIs

TuukkaH ( 2014-01-20 11:43:04 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-01-20 11:16:18 +0300

Seen: 829 times

Last updated: Jan 20 '14