Is there a way to determine if the device has gps enabled without querying the user to turn on their GPS? Right now I am using:
local locationHandler = function( event )
-- Check for error (user may have turned off Location Services)
if event.errorCode then
gpsBtn:setActive (false, 0.3)
else
gpsBtn:setActive (true, 1.0)
end
end
Runtime:addEventListener( "location", locationHandler )
The problem with this is that when the user gets to the page, the page presents a popup saying it requires GPS and asks the user to enable it. I simply want to ping for the service and act accordingly without any interaction with the user.
Thoughts? [import]uid: 69863 topic_id: 20409 reply_id: 320409[/import]