← Back to team overview

ubuntu-phone team mailing list archive

Re: Can I check if GPS is disabled for an app?

 

I have a Nexus 4 running Ubuntu Touch OTA 9 from the Stable channel. I can open UNav. When I select GPS coordinates, it gives me my coordinates. When I open UNav, it gives me my current location. I have my home marked as a favorite. When I click on it, UNav finds it. When I search for a location, UNav finds it.

I haven't tried it in my car since upgrading. But it seems to work.

Bruce Griffis

On Friday, February 5, 2016 9:58:42 AM EST, 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




--
Sent using Dekko from my Ubuntu device


References