Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127847

QtPositioning Android backend always checks for precise location

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.3, 6.8.0 RC, 6.9.0 FF
    • 6.6, 6.7, 6.8.0 FF
    • Positioning
    • None
    • Android
    • 5
    • 693d6d5bb (dev), 3a0f68e2b (6.8), 804857158 (6.7)
    • Foundation Sprint 115

    Description

      This bugreport results from this Jira comment by ntadej.

      After https://codereview.qt-project.org/c/qt/qtpositioning/+/459939 got merged, the QtPositioning Android backend no longer requests the needed permissions, but only checks if they are granted.

      The old code was always requesting the precise location (android.permission.ACCESS_FINE_LOCATION), however now the user might want to request only approximate location (android.permission.ACCESS_COARSE_LOCATION) and we should still handle it properly.

      However, the fix is more complicated than simply checking for both types of permissions.

      The tricky part is that QGeoSatelliteInfoSource cannot work without coarse location at all, while QGeoPositionInfoSource methods rely on preferredPositioningMethods.

      Attachments

        For Gerrit Dashboard: QTBUG-127847
        # Subject Branch Project Status CR V

        Activity

          People

            ivan.solovev Ivan Solovev
            ivan.solovev Ivan Solovev
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes