Hmm. I've just tried the following function by Ralph DiMola and no luck.

function GetGpsCords

   local tGPS

   if not mobileSensorAvailable("location") then return empty
   put mobileSensorReading("location", true) into tGPS
   if tGPS["latitude"] is not empty and tGPS["longitude"] <> 0 then
      wait .25 seconds
      put mobileSensorReading("location", true) into tGPS
   end if
   if tGPS["latitude"] is not empty and tGPS["longitude"] <> 0 then
      return tGPS
   else
answer "GPS is not enabled or your GPS can't determine your location." & cr & "If your GPS was just enabled, please try again in a few minutes." with "OK" titled "Proximity Search"
      return empty
   end if

end GetGpsCords

On iOS for the LC standalone settings I have ticked Location Services, GPS & WiFi in the Requirements and Restrictions section and mobileLocationAuthorizationStatus() returns 'notDetermined' on the test iPhone 5. The test app doesn't appear under the listed apps in Settings -> Privacy -> Location Services, so how this work?

On the Android test device, Location is enabled under settings and I have Fine and Coarse Location enabled in the LC standalone settings.

Using LC 7.0.5 with a iPhone 5 and Nexus 7. All up to date.

regards
alex

On 27/05/2015 10:05 pm, Magicgate Software - Skip Kimpel wrote:
My first stumbling block with it was that I didn't realize the data was
returned in an array.  Once I saw that I was able to easily parse the data
and begin using it.

SKIP

On Wed, May 27, 2015 at 7:50 AM, Alex Shaw <a...@harryscollar.com> wrote:

Hi

I recently tested mobileCurrentLocation() for both Android & iOS on LC
7.0.5 and can't seem to get it working.

Is there a good guide somewhere?

The dictionary is definitely lacking in this area.

regards
alex

On 21/05/2015 10:36 am, Richard Gaskin wrote:

Roger Eller wrote:

That's what I find most frustrating about reading this list. We have
an x-plat dev environment, so I keep hoping to see mergExt eventually
go x-plat too.  After all, there's a lot of android devices out there
these days.
Last time I used it mobileCurrentLocation is working on Android.

Does it not work in iOS?


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to