Cc.loader.load('http://domain.com/name') does not work on iOS/Android

Hello,

In Cocos v2, I used cc.loader.loadImg and it worked.
In Cocos v 3.11, the code works from a browser.

Well, I do nothing with the response. I use this as logging. I make a request ‘http://domain.com/log?game=start’ to my server and then see apache logs. This is my analytics and it worked great in Cocos 2.

Is there any other way to make a request to external content on iOS/Android?

Regards,
Valery.

I think you should use cc.loader.getXMLHttpRequest() and try to send your request with it

1 Like