Thanks for the workaround!
Yes, it’s not pretty and I’d prefer a native async function, however at least for now it works.
Besides using that code to download files, the simple native webpopup can also be used if you need to communicate datas with a server in background.
I’m developing an app that need to send gps coordinates to a server and get some datas. Before I used the native lua http functions (not async), but every time a network connection occurs the app freezes for a few seconds. Not very professional.
So I used a hidden native webpopup to start a connection to the server, and a html redirect to automatically send the data back to corona through a link (intercepted by the webpopup listener).
It works pretty well and it’s async.
The only problem, so far, is that you can’t start any new native webpopup while the webpopup used to communicate to the server is receiving or sending data to the app… [import]uid: 9158 topic_id: 1172 reply_id: 10244[/import]