iOS webView在ipv6环境下加载不到数据,出现空白页被拒

这几天更新app的时候,被拒了,还不止一次。理由如下

被拒理由:

We discovered one or more bugs in your app when reviewed on iPad and iPhone running iOS 10.2.1 on Wi-Fi connected to an IPv6 network.

Specifically, the app does not load content while tapping on shopping button.

Please see attached screenshots for details.

到这里很多人都会认为是不支持ipv6的原因,当然倘若不支持ipv6的话,肯定是不行的,但也不能出现ipv6的字样就感觉一定是ipv6的问题,也可能是其他的问题呢。下面看看我们的具体问题吧!

我们是做导购的,点击“去购买”按钮就会跳转到淘宝,没有安装淘宝app的就用我们app内部的webView直接加载出来。被拒理由上明确指出:Specifically。Specifically(具体来说)就是指已经到达我们的单品详情页。而这个去购买只是上级带过来的淘宝链接而已。也不是请求我们的服务器,怎么会是不支持ipv6呢?所以这里跟ipv6没关系,至少是跟我们的服务器没关系。因为可以拿到数据。

然后我很自信的又提交了。结果依然是被拒。理由一样。不,是更加明确了。

  We found the previous bug in your app when reviewed on iPad and iPhone  running iOS 10.2.1 on Wi-Fi connected to an IPv6 network.

Specifically, the app does not load content while tapping on 去购买 button.

Please see attached screenshots for details.

我们app上的按钮就是“去购买”,她们将shopping直接改成中文了。所以是更佳明确了。

解决办法:

只需修改一下app的销售范围,将app的销售范围改为中国和港澳台地区即可。

iOS webView在ipv6环境下加载不到数据,出现空白页被拒_第1张图片
修改销售范围

深究一下问题的根源。个人觉得是淘宝的服务器对ip地址进行了限制。只允许国内和港澳台的ip进行访问,不允许其他地区的IP访问。苹果审核在美国如果你设置的销售范围是不国内的,她们会在美国的网络环境下进行测试审核。修改之后就会切换到我们国内的网(只是个人观点)。在stackoverflow看到下面这段话,感觉有些帮助。

In order for your IPv6-only network to be able to reach IPv4 addresses, a gateway is required, which has access to IPv4. This is generally done with a NAT64/DNS64 gateway, which translates IPv4 addresses into "fake" IPv6 addresses, and accepts connections to those "fake" IPv6 addresses and translates the connections to the IPv4 network. These IPv6 addresses will be in the 64:ff9b::/96 range.

你可能感兴趣的:(iOS webView在ipv6环境下加载不到数据,出现空白页被拒)