Search code examples
iosimagecordovauiwebview3g

phoneGap - iOS - images OK with wifi, but not loaded using 3G (work fine using safari)


I'm encountering a strange behavior - the (remotely hosted) images of my app are not showing up only in this situation:

  • loaded using 3G
  • on an iPhone
  • using phonegap

The images load okay when:

  • I launch the app. with wifi (even from an hotspot)
  • I launch the website version of the app (with mobile safari)
  • I use an android + 3G

I've done several searches on Google but found nothing about that case. (The images are remotely hosted on a public IP, accessible using 3G, the android version of my app proves it)


Solution

  • the issue was because "SFR" (a 3G french provider) used a NAT, all the http calls was made to an "SFR"'s IP with the real url hidden in the url's parameters, the only solution was to deactived the white filtering of the domain names and to allow *