<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic iOS bad connection.type in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050528#M49762</link>
    <description>&lt;P style="font-size: 12px;"&gt;Good morning,&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;when i use the Network Information plugin and the device is connected to my WIFI the connection.type value is "cellular". How can i fix this?&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;Tried on&amp;nbsp;XDK 1621 + cordova 3.5 and XDK 1995 + cordova 4.1.3 with the suggested XDK version of the plugin (i used the "reset versions" link in the project page)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2015 13:30:43 GMT</pubDate>
    <dc:creator>Giorgio_B_1</dc:creator>
    <dc:date>2015-06-23T13:30:43Z</dc:date>
    <item>
      <title>iOS bad connection.type</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050528#M49762</link>
      <description>&lt;P style="font-size: 12px;"&gt;Good morning,&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;when i use the Network Information plugin and the device is connected to my WIFI the connection.type value is "cellular". How can i fix this?&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;Tried on&amp;nbsp;XDK 1621 + cordova 3.5 and XDK 1995 + cordova 4.1.3 with the suggested XDK version of the plugin (i used the "reset versions" link in the project page)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 13:30:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050528#M49762</guid>
      <dc:creator>Giorgio_B_1</dc:creator>
      <dc:date>2015-06-23T13:30:43Z</dc:date>
    </item>
    <item>
      <title>Is this in the XDK, App</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050529#M49763</link>
      <description>&lt;P&gt;Is this in the XDK, App Preview or a built app? What device/OS?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 14:12:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050529#M49763</guid>
      <dc:creator>John_H_Intel2</dc:creator>
      <dc:date>2015-06-23T14:12:30Z</dc:date>
    </item>
    <item>
      <title>it's a built app. iPad Air 2</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050530#M49764</link>
      <description>&lt;P&gt;it's a built app. iPad Air 2 and iOS 8.3&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 14:36:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050530#M49764</guid>
      <dc:creator>Giorgio_B_1</dc:creator>
      <dc:date>2015-06-23T14:36:56Z</dc:date>
    </item>
    <item>
      <title>I just tested this on a</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050531#M49765</link>
      <description>&lt;P&gt;I just tested this on a iphone 6, ios 8.3 and it worked correctly. Make sure to pick the cordova connection plugin :)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;lt;!DOCTYPE HTML&amp;gt;&lt;BR /&gt;
	&amp;lt;html&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;lt;head&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;lt;meta charset="UTF-8"&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;lt;meta name="apple-mobile-web-app-status-bar-style" content="black" /&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;meta name="format-detection" content="telephone=no"&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;lt;script src="intelxdk.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;lt;script src="cordova.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script type="text/javascript" language="javascript"&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; function onDeviceReady()&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var divStatus = document.getElementById("divStatus");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;divStatus.innerHTML = divStatus.innerHTML + "Ready&amp;lt;br&amp;gt;"; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//intel.xdk.device.hideSplashScreen();&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; //initial event handler to detect when intel.xdk is ready to roll&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; document.addEventListener("intel.xdk.device.ready",onDeviceReady,false); &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; function checkConnection() {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var networkState = navigator.connection.type;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var states = {};&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; states[Connection.UNKNOWN] &amp;nbsp;= 'Unknown connection';&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; states[Connection.ETHERNET] = 'Ethernet connection';&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; states[Connection.WIFI] &amp;nbsp; &amp;nbsp; = 'WiFi connection';&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; states[Connection.CELL_2G] &amp;nbsp;= 'Cell 2G connection';&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; states[Connection.CELL_3G] &amp;nbsp;= 'Cell 3G connection';&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; states[Connection.CELL_4G] &amp;nbsp;= 'Cell 4G connection';&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; states[Connection.CELL] &amp;nbsp; &amp;nbsp; = 'Cell generic connection';&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; states[Connection.NONE] &amp;nbsp; &amp;nbsp; = 'No network connection';&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //console.log('Connection type: ' + states[networkState]);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; divStatus.innerHTML = divStatus.innerHTML + states[networkState];&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; }&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/script&amp;gt;&amp;nbsp;&lt;BR /&gt;
	&amp;lt;/head&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;lt;body bgcolor="#ff0055"&amp;gt;&lt;BR /&gt;
	&amp;lt;div id="divStatus" style="border:1px solid red;height:100px; width: 400px; wrap=hard"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;div&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;button id="showConnection" ontouchstart="checkConnection();"&amp;gt;update connection&amp;lt;/button&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;&lt;BR /&gt;
	&amp;lt;/html&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 17:40:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050531#M49765</guid>
      <dc:creator>John_H_Intel2</dc:creator>
      <dc:date>2015-06-23T17:40:43Z</dc:date>
    </item>
    <item>
      <title>to me your code returns</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050532#M49766</link>
      <description>&lt;P&gt;to me your code returns "Unknown connection" :(&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 15:22:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050532#M49766</guid>
      <dc:creator>Giorgio_B_1</dc:creator>
      <dc:date>2015-06-24T15:22:52Z</dc:date>
    </item>
    <item>
      <title>What about if you are</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050533#M49767</link>
      <description>&lt;P&gt;What about if you are connected to wifi? Does it return correctly?&lt;/P&gt;

&lt;P&gt;What cell service are you connected to?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Where are you located?&lt;/P&gt;

&lt;P&gt;I assume your ipad air has a cell data plan?&lt;/P&gt;

&lt;P&gt;I have an air that is on 7.1 that has a data plan that I will try it on and then maybe upgrade and try it again. But of course its dead now... ;)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 19:02:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050533#M49767</guid>
      <dc:creator>John_H_Intel2</dc:creator>
      <dc:date>2015-06-24T19:02:19Z</dc:date>
    </item>
    <item>
      <title>my iPad is wifi only, so it's</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050534#M49768</link>
      <description>&lt;P&gt;my iPad is wifi only, so it's really strange that connection.type value is "cellular" and the script above returns "unknown connection" :P&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 21:33:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050534#M49768</guid>
      <dc:creator>Giorgio_B_1</dc:creator>
      <dc:date>2015-06-24T21:33:19Z</dc:date>
    </item>
    <item>
      <title>Note the iOS quirks on the</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050535#M49769</link>
      <description>&lt;P&gt;Note the iOS quirks on the readme for that plugin: &lt;A href="https://github.com/apache/cordova-plugin-network-information#ios-quirks" target="_blank"&gt;https://github.com/apache/cordova-plugin-network-information#ios-quirks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 22:35:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050535#M49769</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2015-06-24T22:35:37Z</dc:date>
    </item>
    <item>
      <title>I know that quirk, but my</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050536#M49770</link>
      <description>&lt;P&gt;I know that quirk, but my ipad is wifi only, so it should not care about it.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 01:25:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050536#M49770</guid>
      <dc:creator>Giorgio_B_1</dc:creator>
      <dc:date>2015-06-25T01:25:42Z</dc:date>
    </item>
    <item>
      <title>Well, I updated the ipad air</title>
      <link>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050537#M49771</link>
      <description>&lt;P&gt;Well, I updated the ipad air to 8.3 and ran the app (code above) and it returns correctly based on the code above.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; states[Connection.WIFI] &amp;nbsp; &amp;nbsp; = 'WiFi connection';&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 13:46:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/iOS-bad-connection-type/m-p/1050537#M49771</guid>
      <dc:creator>John_H_Intel2</dc:creator>
      <dc:date>2015-06-25T13:46:31Z</dc:date>
    </item>
  </channel>
</rss>

