I would like to take advantage of the iPhone’s location-services in Corona. I believe the myMap:getUserLocation() is the call that would get the locations from the iPhone. I have not tried the myMap:getUserLocation() api yet but I believe the call will prompt the user to Allow or Disallow the use of the location services. If the user selects “Don’t Allow” what does the myMap:getUserLocation() report. The Corona API documentation doesn’t mention anything on this. [import]uid: 101293 topic_id: 17440 reply_id: 317440[/import]
This hasn’t been tested as of yet, but I’d assume that it returns nil. Just ensure to do an if/then on whether the variable you’re storing location info contains anything and then react from there. [import]uid: 52430 topic_id: 17440 reply_id: 66133[/import]