Android Web view is giving me "Unable to send the cookie.Cookie size would be exceeded" error. The website I am opening in the web-view url is build using Magento 2 e-commerce platform. I have googled about the same and found out that Magento 2 throws an exception if your cookies size is more than 50.
And this link gives me a clear comparative listing of cookie size as well as cookie limit supported by different browsers and Android supports only 50 cookies per domain.
As per the answer provided here, i am clearing the cookies whenever getting this error but the problem is , it also clears my cart items as they are saved in browser cookies.In this situation, end user have to re-select all the cart items which is a bad user experience.
Screenshots of my error message is below -
How to solve this issue. Any help is appreciated.