I’m using this code:
locationHandler = function(event)tell("locationHandler") -- ... end function readGPS() tell("readGPS") if SIM then tell("readGPS sim") USERLAT=60 USERLON=15 slat="60" slon="15" else tell("readGPS not sim ok") Runtime:addEventListener( "location", locationHandler ) end end
The addEventListener line in readGPS is reached, but the eventlistener is never triggered. The app doesn’t ask permission to use GPS after a reinstall, and there are no settings to change in the phone’s Settings.
-
Iphone 6, IOS 8.1.3
-
Latest Corona (2014.2511)
I was thinking I have to add some line to build settings to go into the info.plist for the app?
The same code works fine in iOS 7 and on Android.