[Interest] iOS QGeoPositionInfoSource updateInterval

Ivan Solovev ivan.solovev at qt.io
Tue Nov 2 11:06:38 CET 2021


Hi Philippe,

As far as I can tell, the problem is that CLLocationManager class does not have any API to control update frequency. It allows to adjust the desired accuracy instead, which is hardcoded to kCLLocationAccuracyBest for now [0].
There is a https://bugreports.qt.io/browse/QTBUG-93860 which suggests providing ways to control this parameter via public API in Qt.

[0] https://code.qt.io/cgit/qt/qtlocation.git/tree/src/plugins/position/corelocation/qgeopositioninfosource_cl.mm?h=5.15.2#n198

Best regards,

Ivan Solovev
Senior Software Engineer

The Qt Company
Erich-Thilo-Str. 10 12489
Berlin, Germany

www.qt.io<http://www.qt.io>

Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B
________________________________
From: Interest <interest-bounces at qt-project.org> on behalf of maitai <maitai at virtual-winds.org>
Sent: Saturday, October 30, 2021 7:23 PM
To: Interest at qt-project.org <Interest at qt-project.org>
Subject: [Interest] iOS QGeoPositionInfoSource updateInterval

Hi all,

It seems to me that QGeoPositionInfoSource::setUpdateInterval on iOS
does nothing, whatever I set I am still receiving a position update
around every second.

I want to use a longer interval when in background, in order not to
drain the battery. But even in foreground I cannot change the frequency
of position updates.

Is it a bug or I am missing some subtleties?

Using qt 5.15.2 and iOS 14.

Thanks
Philippe Lelong
_______________________________________________
Interest mailing list
Interest at qt-project.org
https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20211102/e1b9353b/attachment.html>


More information about the Interest mailing list