Hey guys, I am having and issue with getting the GPS location coordinates using getUserLocation(); This is on a test build using public build 2189. The app has permission to access the location data via iOS. It returns 0 , 0 on the iOS Simulator and Devices, and 37, -122 in corona simulator. Any help would be awesome. Thanks.
local myMap = native.newMapView( 0, 0, 320, 100 ); myMap.x = \_W/2; myMap.y = 10 myMap.isVisible = true; local locationTable = myMap:getUserLocation(); local locationtxt = display.newText( "My location is: ", 0, 0, native.systemFont, 16 ) locationtxt:setFillColor( 1, 1, 1 ); locationtxt.y= \_H/2 + 90; locationtxt.x = \_W/2; local function callMap() if ( locationTable.errorCode ) then locationtxt.text = locationtxt.text .. locationTable.errorMessage native.showAlert( "GPS Location Error", locationTable.errorMessage, {"OK"} ) else native.showAlert( "GPS Location Found", locationTable.latitude .. " : " .. locationTable.longitude, {"OK"} ) locationtxt.text = locationtxt.text .. locationTable.latitude .. ", " ..locationTable.longitude myMap:nearestAddress(locationTable.latitude, locationTable.longitude); end timer.cancel(tmr); tmr = nil; end tmr = timer.performWithDelay(5000, callMap, 1);