cc.loader.addImage problem on mobile

Hi @slackmoehrle

I have below code, when it runs on web, texture is not null but when I runs it on mobile, the log show the texture is null

Is there any difference here?

Update:

I found out the problem happened with secure url, it works fine with non-secure url

@nantas does this need fixing?

New Update

  • Secure url (https) cannot use with both cc.textureCache.addImage and cc.loader.load
  • Non-secure url (http) works with cc.textureCache.addImage on browser but not on mobile, cc.loader.load works fine on both browser and mobile

What if I need to load image from a secure url anyway?