My application using a webview to open a webpage which is updating few cookies on some interactions taken on webpage. Now I want to read that cookie and make some UI tweaks based on the value of the cookie.
iOs has some implementation of Observers which can be attached to cookies list and get notifications for any cookie change happens.
I am searching similar solution from long but could not find any kind of listeners or something which can be attached to cookies and get to know when they are updated.
I read everything in CookieManager
and CookieSyncManger
https://developer.android.com/reference/java/net/CookieManager.html
https://developer.android.com/reference/java/net/CookieManager.html
But nothing helpful.
I know using javascript interface hooks is a better solution but that can't be implemented for now as the website is already running in production.