summaryrefslogtreecommitdiff
path: root/src/plugins/position/corelocation/qgeopositioninfosource_cl.mm
Commit message (Collapse)AuthorAgeFilesLines
* Apple platforms: properly guard API access when requesting location infoJake Petroules2018-01-021-13/+18
| | | | | | | | | | | | | | | requestAlwaysAuthorization and requestWhenInUseAuthorization are prohibited APIs on macOS, and the former is also prohibited API on tvOS. This means they are akin to private APIs and must not be called under any circumstances. The respondsToSelector calls are also removed as Qt no longer supports OS versions where thee methods are not available, and in any case such uses should be replaced with __builtin_available. Background location updates are also now made available on watchOS 4 and above. Change-Id: I817d69f4ec71b96f03dda42635d675499e8908c0 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
* CLLocationManager - allow background updatesTimur Pocheptsov2017-03-171-0/+16
| | | | | | | | | | | | To allow background updates, on iOS we have to enable this capability in the app's plist + also set a property on CLLocationManager. [ChangeLog] Allow background updates if such capability is present in infoDict Task-number: QTBUG-52014 Task-number: QTBUG-59275 Change-Id: Ifadfbf9a35919912895b3515348d55afa97173c3 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Simon Hausmann2016-05-181-1/+1
|\ | | | | | | Change-Id: Ifed3a326085bd4aaff069007966efd6932c2be3b
| * A new QGeoPositionInfoSourceCL should be initialized with NoError.Alexandru Croitor2016-04-281-1/+1
| | | | | | | | | | | | Change-Id: Ide4ccacd9d7d6a8fe86d190723fcd94ddab9f6d6 Task-number: QTBUG-53059 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Updated license headersAntti Kokko2016-01-201-14/+20
| | | | | | | | | | | | | | | | | | | | From Qt 5.7 -> LGPL v2.1 isn't an option anymore, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new LGPL header instead of LGPL21 one (in those files which will be under LGPL v3) Change-Id: Iaee1a5fd53291752a1891710ee375ca32778b142 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* | tvOS supportMike Krus2015-12-311-0/+11
|/ | | | | | | Builds but untested, only support single ping location updates Change-Id: I96f6df9d5b26ed17e10cf14d33066dbad9945818 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
* Enable positioning for OS XLaszlo Agocs2015-09-101-0/+4
| | | | | | | | | | Core Location works just fine. Add also a helpful hint to the "unknown" error that comes when Wi-Fi is turned off. Change-Id: I0240f1e070217e19aff4c9329d680dd9991b74b1 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Update contact URL in all license headers to qt.ioAlex Blasche2015-02-181-1/+1
| | | | | Change-Id: Ia1e333be7fec8898de609d9b9303b1ad7687632e Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Update BSD and LGPLv2.1 licensesAlex Blasche2015-02-181-3/+3
| | | | | | | | - Removes subsidiary extension from Qt Company - Replaces remaining occurrences of Digia in BSD and LGPLv2.1 Change-Id: I7467a6744af7d1c3aef3c29118f219399162a18c Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Update all LGPLv2.1 license headers in source to latest versionAlex Blasche2015-02-151-20/+12
| | | | | | | | | | | This affects all QtPositioning related code and the test code in the entire repository. The Qt Company is set as new copyright owner and the copyright year is bumped to 2015. Change-Id: Iee0e990680683c20f5920e49cc1063ea9349e2cd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* iOS 8 - CLLocationManager authorizationTimur Pocheptsov2014-10-231-0/+8
| | | | | | | | | | | | | iOS8 introduced a new authorization scheme for Location data. Before retrieving location data, CLLocationManager must request authorization. Call two methods: requestAlwaysAuthorization/requestWhenInUseAuthorization on a location manager (which one will work/preferred - can be adjusted by setting NSLocationAlwaysUsageDescription/NSLocationWhenInUseUsageDescription entries in a plist). Task-number: QTBUG-41827 Change-Id: I9fc24921dc7d889b629b2c71e7698a33fc6ae47a Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* OSX: Fix QGeoPositionInfo attribute values with corelocation plug-inv5.3.25.3.2Alex Blasche2014-08-151-4/+8
| | | | | | | | | | | Fix corelocation plugin to return "nan" values for the QGeoPositionInfo attributes which aren't available. Task-number: QTBUG-38300 Change-Id: Id4c6eb69ef65fccfd7de32ec476d3afa3c4bbf98 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fixed symbol clash between sensor and positioning plug-in on iOSAlex Blasche2014-07-141-3/+3
| | | | | | | | | | locationDelegate is used by two iOS plug-ins at the same time. This removes the duplicate names and thus fixes the build if the same application happens to use the two APIs. Task-number: QTBUG-40198 Change-Id: I7bb0c1400f1a088a70854b522ca81ee58f1abbb0 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Add CoreLocation positioning plugin for QtLocationIan Dean2013-12-121-0/+241
Implements a QGeoPositionInfoSource plugin using CoreLocation. Implemented by Ian Dean. [ChangeLog][QtPositioning][QGeoPositionInfoSource] iOS position backend added. Change-Id: I09df434f95e5d72b1f6cf6381412334ae45d3d54 Reviewed-by: Ian Dean <ian@mediator-software.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>