GitHub user breautek added a comment to the discussion: Cordova VS Android 
System Webview

> Maybe someone could help or advise how to debug what is causing this.

Because it sounds like you're able to reproduce the issue, my best advice is to 
use the Chrome remote debugger to see if there are any JS errors occurring, or 
if there are any network issues if the products data is pulled over the 
network, etc. If you're unsure how to open the debugger, then I have a [blog 
post](https://breautek.com/articles/debugging-cordova-apps.html) that explains 
how.

> I have this old cordova application due to recent android system webview 
> update(happened before xmas) when I log in to application I can see customers 
> fine but products not being displayed when I go to phone settings and 
> uninstall android system webview everything works.

Because your app works on an older version, but breaks on a newer version of 
the webview there are 3 likely scenarios that I would try to rule out first:

1. The code is using older/deprecated features that has since been removed in 
newer versions.
2. Assuming product data is pulled over the network, the network request is 
being blocked by CORS. If you see `Access-Control` errors, then [this blog 
post](https://breautek.com/articles/enabling-cors.html) might help. The article 
was written for ios/WKWebView, but all the concepts also applies to android as 
well, because CORS is a server side configuration.
3. Assuming product data is pulled over the network, the network request is 
relying on third-party cookies which I believe have stricter defaults 
now-a-days. I don't use cookies so I'm not as experienced if this is the case. 
I believe 
[SameSite](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value)
 needs to be explicitly set to `None` on the server.

GitHub link: 
https://github.com/apache/cordova/discussions/523#discussioncomment-12094451

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to