qt - QtPositioning 5.3, QML PositionSource Returning no Data on ios 8.1? -
I am creating a simple photo app and the GPS coordinates of the current photo are required. I have followed the basics of creating and checking the PositionSource element in CPML (and it looks fine). But when I use coordinates and timestamps, I give invalid time and no nan.
I import QtPositioning 5.3 to QT + = qml in qml and .pro file quick positioning
Here is my situation processing element
Status resource { Id: src Active: True Favorite Promotion Methods: Status Resources Setrite positioning method component. Contained: {src.start () src.update () var supPos = "unknown" if (SRC. Supported promotion methods == position Snsadnknhin promotion method) {supPos = "NoPositioningMethods"} if (SRC. Supported PositioningMethods == state resources. AllPositioningMethods) {supPos = "AllPositioningMethods"} if (src.supportedPositioningMethods == PositionSource.SatellitePositioningMethods) {SupPos = "SatellitePositioningMethods"} if (src.supportedPositioningMethod S == state resources. non-Satellite positioning methods ) {SupPos = "NonSatellitePositioningMethods"} console.log ("position source weighted || supported:" + suppos + "valid:" + m NY)} onPositionChanged: {var coord = src.position.coordinate; console.log ( "Coordinates:", coord.longitude, coord.latitude);}}
getPos (function) {var coord = src .position.coordinate; posTest.text = "coordinates Latitude:" + coord.latitude + "lon:" + coord.longitude + "Time:" + src.position.timestamp}
It's jus me NaN NaN And gives an invalid timestamp ... anyone has been trying to use the status resource element on the real device and it is working ...? I will try it soon other devices ... iOS and Android ..
Update **** Android 4.4.4 (Motoaks) seems to work fine on
This happens if you have not enabled the location service for the application. You can enable it in settings.
Comments
Post a Comment