ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #18121
Re: Can I check if GPS is disabled for an app?
Hi Thomas, Hi Marcos Hi guys,
after OTA 9 I have described problem from Marcos' question. I have
always my GPS disabled only if I need it I enable it.
After OTA 9 I enabled the location button like ever in the shortcuts. I
was missing the GPS button there and didn't find it in setting under
location so I thought that everything were working fine. After several
minutes I recognized that there wasn't a GPS signal... I tried it over
some days to activate this signal without success.
A friend of mine in a Ubuntu group told me then, that there were
another setting button under the battery settings!!! I hadn't got any
idea that THERE is the new place for the GPS button.
After activating this button GPS and location worked, not really good,
but it is working.
If I hadn't this friend I would still searching this button, so I also
think it would make sense to give developers the possibility to check
this setting.
Greetings
Ilonka
Am Freitag, den 05.02.2016, 20:41 +0100 schrieb Thomas Voß:
> 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-statu
> > > > s-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
>
References