compose-webview-multiplatform icon indicating copy to clipboard operation
compose-webview-multiplatform copied to clipboard

Cookie issue

Open Osanosa opened this issue 1 year ago • 5 comments

Hi there. I'm trying to show pop-up dialog with a page on some local crm site but after login upon reopening it prompts to log in again despite having all cookies saved. Google stays logged in and I can continue via it, and despite cookie being saved it doesn't properly open.

Osanosa avatar Jun 13 '24 01:06 Osanosa

How can I troubleshoot it?

Osanosa avatar Jun 13 '24 01:06 Osanosa

image image I'm trying to debug it to compare states but for some reason can't

Osanosa avatar Jun 14 '24 12:06 Osanosa

@Osanosa Could you please provide your code? We just need a simple example.

KevinnZou avatar Jun 16 '24 00:06 KevinnZou

My code is pretty simple, rememberWebviewState(url) and WebView itself. As per mentioned can't debug state — it's possible to do until WebView is displayed, then it goes out of scope and state becomes unavailable. I checked /data/data and looks like while cookie doesn't change, session storage does (/data/data/pro.themed.mdvc/app_webview/Default/Session Storage) and it looks like this when authorized: *®Ë#

Osanosa avatar Jun 22 '24 12:06 Osanosa

This is all caused by this piece of code here:

https://github.com/KevinnZou/compose-webview-multiplatform/blob/b740b9bb126a55fc6083234103d65832dd3fd37f/webview/src/desktopMain/kotlin/com/multiplatform/webview/web/WebView.desktop.kt#L68

The project has stated that they need a desktop maintainer thus I guess no fix soon.

lsafer-meemer avatar Dec 15 '24 15:12 lsafer-meemer