Project: titanium
Issue TIMOB-20229: Android: Titanium.Network."Cookie" API is not Working.
We tried to setup cookie on a web view using this method "createCookie", "addHTTPCookie" and "addSystemCookie". But it does not work it only reads the default cookies but not set the cookie. Please take a look my sample code. *Steps to reproduce* 1. Just run this sample code then check the consol log. {code:title=app.js} var win = Ti.UI.createWindow({	layout : 'vertical' }); var url = 'http://www.appcelerator.com/'; //Or any html file var reload = Ti.UI.createButton({	title : 'reload',	height : 50,	width : 100,	top : 5, }); reload.addEventListener('click', function() {	web.url = url; }); win.add(reload); var web = Ti.UI.createWebView({	url : url,	width : Ti.UI.FILL,	top : 100,	height : Ti.UI.FILL, }); win.add(web); var i = 1; web.addEventListener('load', function(e) {	var d = new Date();	d.setTime(d.getTime() + (2 * 24 * 60 * 60 * 1000));	// You can try this("addHTTPCookie", "addSystemCookie") insted of "createCookie"	var cookie = Ti.Network.createCookie({	name : 'helloWorld',	domain : url,	value : "testCoockie",	expiryDate : d,	});	Ti.API.info("createCookie -> " + JSON.stringify(cookie));	var cookies = web.evalJS("document.cookie").split(";");	Ti.API.info("# of cookies -> " + cookies.length);	for ( i = 0; i <= cookies.length - 1; i++) {	Ti.API.info("cookie -> " + cookies[i]);	} }); win.open(); {code} Thanks.
Story points: 5