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

QtPositioning - iOS8 CLLocationManager authorization

XMLWordPrintable

    • iOS/tvOS/watchOS
    • 78aa8a9f931ec4f983747869f5de5c121d194dcc

      iOS8 introduced a new authorization scheme for Location data.
      Before retrieving location data, CLLocationManager must request authorization.

      There are 2 authorization schemes:

      1. Always Authorization (background location updates)
      CLLocationManager - requestAlwaysAuthorization

      Info.plist must include:
      NSLocationAlwaysUsageDescription

      2. When in use Authorization
      CLLocationManager - requestWhenInUseAuthorization

      Info.plist must include:
      NSLocationWhenInUseUsageDescription

      Without having these methods executed, QtPositioning returns a SourceUnknown error.

      Calling either of these methods will show the "Allow app to access location" popup on an iOS8 device.

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

            tpochep Timur Pocheptsov
            appstreet Niraj Desai
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes