cocos creator How to reconnect when the network connection was lost on iOS

leesangmin
Mon, 07 Jan 2019 05:43:17 +0000

NSURLConnection finished with error - code -1005
Response failed, error buffer: The network connection was lost.

How to handle intermittent network outages on iOS

Also, you can not receive an error callback from the downloader.
If you have a solution, please help.

Thank you.

var downloader = new jsb.Downloader ();
downloader.setOnFileTaskSuccess(function(){

    });
    downloader.setOnTaskError(function(){
        console.log("error");
    });
    downloader.createDownloadFileTask(url, fullPath);

cocos creator 1.9.1

阅读整个主题