ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #18115
Re: Can I check if GPS is disabled for an app?
On Fri, Feb 5, 2016 at 5:17 PM, Costales <costales.marcos@xxxxxxxxx> wrote:
> @BruceG, @Pat: Thanks a lot :)
>
> But I was asking from the development side. How to know (with code)
> from QML if the user has the GPS disabled? :)
>
> (I just want to add an improvement: If user has GPS disabled, then
> warning about that).
>
Neither the app nor the user do know or should even need to know. It
all comes down to
the accuracy of position estimates. If an app is trusted by the user
to receive position estimates
with high accuracy, the service will make sure that the GPS chipset is
powered on for as long as
that app requires updates (leaving lifecycle considerations aside for
the moment).
As Pat pointed out, we will remove the switch to disable GPS.
With that, apps do not need to worry about warning the user.
I will check if apps receive an appropriate error message in case of
positioning services
being disabled by the user. They should, but let me cross-check and
come back to this thread.
HTH,
Thomas
> A hug
> --
> Sent using Dekko from my Ubuntu device
>
>
> On Fri, Feb 5, 2016 at 5:11 PM, Pat McGowan <pat.mcgowan@xxxxxxxxxxxxx> wrote:
>> GPS is never completely disabled, in fact we will remove that toggle in
>> settings entirely as its misleading. GPS is enabled and disabled as
>> required. The user can control whether location detection is enabled or not,
>> and whether to use the AGPS services from Here.
>>
>> I cannot think of any reason why the update would impact uNav other than
>> perhaps a regression in location service itself.
>>
>> Pat
>>
>> On Fri, Feb 5, 2016 at 9:58 AM, Costales <costales.marcos@xxxxxxxxx> wrote:
>>>
>>> Hi!
>>>
>>> I saw issues in uNav after OTA9 because the new GPS setting in battery
>>> page is disabled and they didn't see it.
>>>
>>> I would like to check if the GPS is disabled or not in the device,
>>> then warning the user for review the settings.
>>>
>>> I was searching about this and I think I can't do anything from QT
>>> [1][2][3], because if the user has data, the geolocation will be
>>> enabled.
>>>
>>> Do you know if there is any way to know if the GPS is disabled?
>>>
>>> Thanks in advance!
>>> --
>>> Sent using Dekko from my Ubuntu device
>>>
>>> [1] http://paste.ubuntu.com/14887544/
>>> [2] http://doc.qt.io/qt-5/qml-qtpositioning-positionsource.html
>>> [3]
>>> https://forum.qt.io/topic/49848/how-to-get-the-gps-on-off-status-on-the-device
>>>
>>> --
>>> Mailing list: https://launchpad.net/~ubuntu-phone
>>> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
Follow ups
References