title: Not getting cookies in Android Phonegap application
body: <pre><code>Android 4.4.2
  Cordova 3.4.1
  jQuery 2.1.0
  jQuery Mobile 1.4.2
  </code></pre>
  
  <p>I need to post my login credentials to a server (IBM Domino 9.01 in this case, but it's irrelevant) and the server responds with a session cookie, among other things.</p>
  
  <p>This works great on iOS, but I don't get any cookies what so ever using my Cordova/Phonegap app on Android. I see this using Chrome Dev Tools. I know that Android gets the cookie because I'm logged in and can browse around. But it doesn't seem to trickle down to the WebView where my JavaScript code lives.</p>
  
  <p>I have modified my appName.java file:</p>
  
  <pre><code>import android.os.Bundle;
  import android.webkit.CookieManager;
  import org.apache.cordova.*;
  public class Rooms extends CordovaActivity 
  {
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          super.init();
          // Set by &lt;content src="index.html" /&gt; in config.xml
  
          CookieManager.setAcceptFileSchemeCookies(true); //available in android level 12
          CookieManager.getInstance().setAcceptCookie(true); //available in android level 12
          super.loadUrl(Config.getStartUrl());
          //super.loadUrl("file:///android_asset/www/index.html");
      }
  }
  </code></pre>
  
  <p>I'm not 100% sure about this part:</p>
  
  <pre><code>CookieManager.getInstance().setAcceptCookie(true)
  </code></pre>
  
  <p>It compiles and runs fine, but I can't access any cookies. </p>
  
  <p>I need access to the cookies because, to my knowledge, there's no other way to extract the NONCE value in a session on a IBM Domino server.</p>