Hello everyone.
I have a question. I’ve written the code to derive my position by GPS. This code works on iOS, but does not work on Windows Phone. So I ask: GPS is usable on windows phone or is not supported? I ask this because it is not written in the official documentation (https://docs.coronalabs.com/api/event/location/index.html#TOC), while for what concerns the use of mapView is clearly written the ban.
I leave the code used, which works on iOS.
local Tentativo = 0 local function Posizionamento( event ) if ( event.errorCode or ( event.latitude == 0 and event.longitude == 0 ) ) then Tentativo = Tentativo + 1 if ( Tentativo \> 10 ) then native.showAlert( "Segnale GPS assente...", { "OK" } ) else timer.performWithDelay( 1000, Posizionamento ) end else LATI = event.latitude LONG = event.longitude print( "Latitudine: ", LATI ) print( "Longitudine: ", LONG ) end end Runtime:addEventListener( "location", Posizionamento ) ------------------------------------------------------------
If you can not use the GPS there is no other way to get its position?
Thank you in advance.