0

I'm developing apps on iOS and Android where I have a web of shopping and when I buy an item, the web gives me a value on the cookie that I get and then I show the number of items that the client has purchased.

The way to take the cookies is:

CookieManager cookieManager = CookieManager.getInstance();
cookieManager.setAcceptCookie(true);
String cookies = cookieManager.getCookie(url);

so, when I have 20 products and I add one, it turns to 21 (obviously) but when I remove one item, it stays on the same number because the cookies don't get updated.

I'm using the same login with Objective C and it updates well.

Am I missing anything on Android?

Thanks in advance.

Rafael Ruiz Muñoz
  • 5,333
  • 6
  • 46
  • 92

0 Answers0