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-boun...@qt-project.org> on behalf of maitai 
<mai...@virtual-winds.org>
Sent: Saturday, October 30, 2021 7:23 PM
To: Interest@qt-project.org <Interest@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@qt-project.org
https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to