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

GeoFlickr example does not ask for permissions on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.2.7, 6.4.3, 6.5.0
    • 6.2.5, 6.3.1, 6.4.0 Beta3
    • Positioning
    • None
    • Android
    • 5
    • c15525883 (6.4), 1fa695d4e (dev), 57794062a (tqtc/lts-6.2)
    • Foundation Sprint 72

    Description

      After QTBUG-103478 was fixed, we no longer explicitly request the location permissions when PositionSource is created.

      Instead, we do it only when we start requesting position updates. That makes sense in general.

      However, GeoFlickr example uses a bit different logic. It checks supportedPositioningMethods before starting updates. And if there are no available positioning methods, it tries to switch to simulation mode (which is currently broken because of QTBUG-105551).

      After QTBUG-103478 is fixed, supportedPositioningMethods() always return nothing for a newly-constructed PositionSource, even if Location is enabled on Android.

      Adding an implicit permissions request to supportedPositioningMethods() call does not look like a correct approach, because that would be basically similar to what we have fixed in QTBUG-103478.

      So we need to find a way to rewrite GeoFlickr example...

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          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:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes