PhoneGap的/科尔多瓦Android应用程序必须通过单独的3G / 4G没有接入互联网 [英] PhoneGap/Cordova Android app has no access to internet via 3g/4g alone

查看:123
本文介绍了PhoneGap的/科尔多瓦Android应用程序必须通过单独的3G / 4G没有接入互联网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在与用户只能报告说,他们不能够通过移动网络上网使用我的应用程序(要求互联网接入)的少数问题。它们不能够在所有访问网络登录到应用程序。但应用程序完美的作品通过Wi-Fi连接。

I'm having an issue with only a handful of users reporting that they are not able to use my application (which requires internet access) over mobile network internet. They are not able to access the network at all to sign in to the application. But the app works perfectly over a wi-fi connection.

请求显然是交叉域和服务器API进行编程接受跨域请求。

The request is obviously cross domain and the server API is programmed to accept cross-domain requests.

在服务器上的日志不显示通话即使收到当用户尝试。

Logging on the server shows no call is even received when the user tries.

jQuery的Ajax调用总是返回只要进程启动失败的回调。

The jQuery Ajax call always returns the fail callback as soon as the process is started.

我已经检查通常的嫌疑人,他们是一切ok。

I have already checked the usual suspects and they are all ok.

<access origin="*" />

在我的Andr​​oid的Manifest.xml

And in my Android Manifest.xml

<uses-permission android:name="android.permission.INTERNET" />

我已经尝试让用户完全卸载应用程序,并重新安装。没有骰子。

I've already tried getting the user to completely uninstall the app, and reinstall again. No dice.

我难倒。任何人都可以点我到这里一个可能的解决方案。

I'm stumped. Can anyone point me out to a possible solution here.

使用科尔多瓦版本3.1.0和Android SDK的最低为15(4.0.1)

Using Cordova version 3.1.0 and Android Minimum SDK is 15 (4.0.1)

太感谢了。

推荐答案

我们终于到它的底部。

这是一个DNS问题。我们的主要的Web应用程序是一个谷歌App Engine的托管应用程序,我们使用通配符子域。

It was a DNS issue. Our primary web application is a Google App Engine hosted app, and we use wildcard subdomains in that.

Android的应用程序也接触相同的域(移动{}域名.COM)下一个子域,但这托管一个单独的服务器上,不依赖于GAE。从Android应用程序调用,而在移动网络上继续前进到GAE的应用程序,而不是我设置在手机的API端点。{}域名.COM,猜测它是某种DNS传播问题,为移动互联网。

The Android application also contacts a subdomain under the same domain (mobile.{domain}.com) but this is hosted on a separate server and does not rely on GAE. Calls from the Android app while on the mobile network kept going to the GAE app rather than the API endpoint I set up at mobile.{domain}.com, guess it was some sort of DNS propagation issue for the mobile internet.

但这里的起脚,子域并不是新的,他们是一对夫妇岁。

But here's the kicker, the subdomains were not new, they are a couple of years old.

要解决这个问题,我成立了我们域的.NET指向同一台服务器,建立一个端点,现在一切都很好。

To solve it, I set up a .net of our domain to point to the same server, set up an endpoint and now all is well.

这篇关于PhoneGap的/科尔多瓦Android应用程序必须通过单独的3G / 4G没有接入互联网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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