Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.11, 6.4.1
-
None
-
-
8
-
697f2dbb5 (6.5), e6426f116 (tqtc/lts-6.2), fd429f764 (tqtc/lts-5.15)
-
Foundations Sprint 80, Foundation Sprint 81
Description
On iOS location permissions can be asked for "while using the app" or "always". Qt internally decides for the appropriate function to call depending on whether both texts (
NSLocationAlwaysAndWhenInUseUsageDescription
and NSLocationWhenInUseUsageDescription) have been set or not. See https://github.com/qt/qtpositioning/blob/fb5deb7ca0ef88865674cdbfa096d8d510ca5717/src/plugins/position/corelocation/qgeopositioninfosource_cl.mm#L157
Unfortunately, Apple seems to have introduced the requirement to always provide both texts in December 2022 (our Uploads of end of November did not have this requirement).
If someone is looking for a short-term workaround, you can use method swizzling and replace the implementation of requestAlwaysAuthorization with the one of requestWhenInUseAuthorization.