title: Worklight - connection on startup fails
body: <p>using Worklight server v6.1 i'm trying to develop a simple app that connects to the production server at startup. To get this i do:</p>
  
  <ul>
  <li>in <code>initOptions.js</code> file i set <code>connectOnStartup</code> to <code>true</code></li>
  <li><p>in <code>wlCommonInit</code> method of <code>&lt;my-app&gt;.js</code> file i call :</p>
  
  <p><code>WL.Client.connect({
                  onSuccess: connected,
                  onFailure: failure
              });</code></p></li>
  </ul>
  
  <p>where <code>connected</code> and <code>failure</code> are two callback to two simple functions that load some data in a listview. When i trie it on a production or development environment i get a spot over my app's layout stating it's loading as you can see in the pic below(even if the application loaded data correctly):</p>
  
  <p><img src="https://i.stack.imgur.com/DHYx4.png" alt="enter image description here"></p>
  
  <p>i notice that after installing and running it on an iOS or Android device i don't have this strange behaviour, but on Windows8 devices i do have. </p>
  
  <p>i set to false connectOnStartup and left only the call to WL.Client.connect. 
  Now the app doesn't get blocked anymore(i suppose becouse WL.Client.connect runs asynchronously while WL.Client.init does not but it's only my opinion). </p>
  
  <p>i can't connect to the server yet, this is strange becouse(you can see in the pic) there is a listview filled with data returned by a sql adapter, </p>
  
  <p>so it looks like the app can connect to the server for calling adapters but not for updates </p>