Hello I am making a network request to display images in my app, however when testing on iOS (iPad Mini 2 Development Compiled) the images do not appear. This same function works in Android and on the simulator, any advice is greatly appreciated.
*cheers
[lua]
local image_thumb = data.data[id].mobile_thumb
local url = DOMAIN … “default/download/” … image_thumb
local function ImageListener(event)
if (event.isError) then
print( “[-] Network error - download failed” )
elseif (event.phase == “began”) then
print("[+] Progress Phase: began")
elseif (event.phase == “ended”) then
print("[+] Displaying response image file")
local image = display.newImageRect(event.response.filename, event.response.baseDirectory, 45, 45)
image.x = 25
image.y = row.height / 2.1
row:insert(image)
end
end
local params = {}
params.progress = true
network.download(
url,
“GET”,
ImageListener,
params,
image_thumb,
system.TemporaryDirectory
)
[/lua]