<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>10 Nov 2017 14:28:00 Z</lastBuildDate><pubDate>10 Nov 2017 14:28:00 Z</pubDate><description>Hi Everyone,&#13;
&#13;
I need to check if Location has been enabled on both android and ios devices before opening a window. The window will track the device's location every 5 minutes whether the device has moved or not so I want to be sure I'm getting gps coordinates. I run the following code but GPSStatus always returns 1 (GPSEnabled) no matter if Location is on or off so I have resorted to checking the longitude. Is there a way to check the status of Location? I've run this on both my android tablet and phone.&#13;
&#13;
GPSInitParameter(gpsAuto,gpsPrecisionHigh+gpsEnergyLow)&#13;
&#13;
Info(GPSStatus())&#13;
&#13;
IF GPSStatus() = gpsEnabled OR GPSStatus() = gpsAvailable THEN&#13;
myGPS = GPSGetPosition(500,"Getting GPS Position")&#13;
&#13;
IF myGPS..Longitude &lt;&gt; 0 THEN&#13;
OpenMobileWindow(WIN_Shift, Clients.ClientID)&#13;
ELSE&#13;
Info("Unable to get GPS position. Verify Location is enabled.")&#13;
END&#13;
ELSE&#13;
Info("Location must be enabled")&#13;
END&#13;
&#13;
Thanks, Bill</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63272-gpsstatus-location/read.awp</link><title>GPSStatus vs Location</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
