Hello,
I am trying to find addresses on Android, but always get errorCode 0 and no errorMessage. On iOS, it works fine. mapsKey is correct, and internet permission is being required.
Map calls like setRegion() or addMarker() also work fine.
code:
local function locationHandler(e) if (e.isError) then print("Map Error: " .. json.prettify(e)) else print("Map Location: " .. e.latitude .. "," .. e.longitude) end end map: requestLocation(e.target.text, locationHandler)
print:
12-18 16:22:14.271 30074 30460 I Corona : Map Error: {
12-18 16:22:14.271 30074 30460 I Corona : “errorCode”:0,
12-18 16:22:14.271 30074 30460 I Corona : “errorMessage”:"",
12-18 16:22:14.271 30074 30460 I Corona : “isError”:true,
12-18 16:22:14.271 30074 30460 I Corona : “name”:“mapLocation”,
12-18 16:22:14.271 30074 30460 I Corona : “request”:“San Francisco”,
12-18 16:22:14.271 30074 30460 I Corona : “type”:“request”
12-18 16:22:14.271 30074 30460 I Corona : }