QGeoSatelliteInfoSource::createDefaultSource() returns NULL on the bq phone

Bug #1448180 reported by Sturm Flut on 2015-04-24
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Medium
Thomas Voß
platform-api (Ubuntu)
Medium
Thomas Voß
qtubuntu-sensors (Ubuntu)
Medium
Thomas Voß

Bug Description

Device: bq Aquaris E4.5 Ubuntu Edition
Operating System: Ubuntu 14.10 (r21)

I am currently trying to build a clone of the "GPS Status" Android app, it displays various details about the built-in GPS receiver.

According to the developer documentation at http://developer.ubuntu.com/api/qml/sdk-14.10/QtLocation.location-positioning-cpp/ , a call to QGeoSatelliteInfoSource::createDefaultSource() can be used to get access to the default Satellite positioning source implementation.

On my device this call returns NULL.

Sample code is located at https://github.com/Sturmflut/ubuntu-touch-simple-gps/tree/3da3dc5f089e698c34765fd18322b84727cb13ae , the call in question is located at backend/modules/Simplegps/gpsdataprovider.cpp . I attached the file and its header for future reference.

Related branches

Sturm Flut (sturmflut) wrote :
Sturm Flut (sturmflut) wrote :
Sturm Flut (sturmflut) wrote :

I also just found out that QGeoSatelliteInfoSource::availableSources() returns an empty list on the phone. This might point to the actual problem.

Changed in location-service (Ubuntu):
status: New → Invalid
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtubuntu-sensors (Ubuntu):
status: New → Confirmed
Thomas Voß (thomas-voss) wrote :

We don't expose satellite visibility information to applications, yet. However, the respective information is certainly used in the service. Please watch this bug and changes to its status for tracking the feature request.

Sturm Flut (sturmflut) wrote :

Any updates on this?

XiaoGuo, Liu (liu-xiao-guo) wrote :

Is there any update on this? has it been fixed? on MX4, I got null pointer. How can I get the location info using C++?

 source = QGeoSatelliteInfoSource::createDefaultSource(this);

source is null.

Changed in platform-api (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Changed in qtubuntu-sensors (Ubuntu):
importance: Undecided → Medium
Changed in platform-api (Ubuntu):
status: Confirmed → In Progress
Changed in qtubuntu-sensors (Ubuntu):
status: Confirmed → In Progress
Changed in platform-api (Ubuntu):
assignee: nobody → Thomas Voß (thomas-voss)
Changed in qtubuntu-sensors (Ubuntu):
assignee: nobody → Thomas Voß (thomas-voss)
no longer affects: location-service (Ubuntu)
Changed in canonical-devices-system-image:
assignee: nobody → Pat McGowan (pat-mcgowan)
importance: Undecided → Medium
milestone: none → ww02-2016
status: New → In Progress
Changed in canonical-devices-system-image:
milestone: ww02-2016 → ww08-2016
Changed in canonical-devices-system-image:
milestone: ww08-2016 → 11
Changed in canonical-devices-system-image:
milestone: 11 → 12
assignee: Pat McGowan (pat-mcgowan) → Thomas Voß (thomas-voss)
milestone: 12 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers