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

╄→尐↘猪︶ㄣ 提交于 2019-12-12 14:59:23

问题


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)


回答1:


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 *



来源:https://stackoverflow.com/questions/13309489/phonegap-ios-images-ok-with-wifi-but-not-loaded-using-3g-work-fine-using-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!