![]() |
[Help needed] HTML5 app with geolocation?
I have been working on a bus tracker app for Philadelphia, and I wrote it as a web app to ease porting to iOS/Android/etc. I figured I could make it into a native app using a QtWebView, but when I try to build it Javascript tells me that there is no navigator.geolocation object. According to the docs there should be, but I can't find a simple example of how to make it work anywhere on the web (I'm rather new to QT, so the one app that I found I couldn't figure out which parts were the functional bits I needed).
Could anyone give me some advice here? |
Re: [Help needed] HTML5 app with geolocation?
http://stackoverflow.com/questions/9...l5-geolocation
Only supported from 4.8 onwards. So In Harmattan which uses 4.7.4 its not supported. |
Re: [Help needed] HTML5 app with geolocation?
Theoretically using
Code:
bool WebView::evaluateJavaScript ( string scriptSource ) |
Re: [Help needed] HTML5 app with geolocation?
Quote:
|
Re: [Help needed] HTML5 app with geolocation?
I don't know of a good tutorial but you can start here
http://doc.qt.nokia.com/qtmobility/q...ionsource.html and check oobProfile source for a working example https://github.com/qwazix/oobProfile...inPage.qml#L88 |
All times are GMT. The time now is 09:05. |
vBulletin® Version 3.8.8