phoneGap - iOS - 图像确定与wifi,但没有加载使用3G(工作罚款使用safari) [英] phoneGap - iOS - images OK with wifi, but not loaded using 3G (work fine using safari)

查看:190
本文介绍了phoneGap - iOS - 图像确定与wifi,但没有加载使用3G(工作罚款使用safari)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个奇怪的行为 - 我的应用程序的(远程托管)图像仅在这种情况下才会显示:

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


  • 使用 c / c>
  • $ b在iPhone上
  • $ b
  • loaded using 3G
  • on an iPhone
  • using phonegap

图片在以下时候可以正常显示:

The images load okay when:



  • 我使用Android + 3G
  • / li>
  • 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

我在Google上进行了多次搜索,但没有发现任何相关情况。
(图像远程托管在公共IP上,使用3G可访问,我的应用程序的Android版本证明了它)

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)

推荐答案

问题是因为SFR(3G法国提供商)使用NAT,所有的http调用都是对SFR的IP与url的参数中隐藏的真实url,唯一的解决方案是停用域名的白色过滤和允许*

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 *

这篇关于phoneGap - iOS - 图像确定与wifi,但没有加载使用3G(工作罚款使用safari)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆