[Interest] iOS QGeoPositionInfoSource updateInterval
maitai
maitai at virtual-winds.org
Tue Nov 2 12:53:03 CET 2021
Ok, thanks,
I think at least this should be written somewhere in the documentation.
Best regards,
Philippe
Le 02-11-2021 11:06, Ivan Solovev a écrit :
> 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 [1] 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 [2]
>
> 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
Links:
------
[1] https://bugreports.qt.io/browse/QTBUG-93860
[2] http://www.qt.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20211102/309b42b6/attachment.html>
More information about the Interest
mailing list