跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[问与答] 安卓开发 webview 不同身份访问相同网站

发表于

目的: webview 访问相同网站,不同身份信息(不同 cookie )

查阅了很多资料,也问了 GPT 没找到解决方案。

给出的内容是清除所有 Cookie ,然后再把现有的 set 进去。但是这只能针对一个域名,如果多个域名就不行了。

CookieManager 也没有备份和还原。以前 webView 可以直接设置缓存地址,新版别不可以了。(setCachePath)

我已试过:

  1. 备份替换 app_webview 文件夹。结果:占用无法删除
  2. 备份替换 app_webview/Default/Cookies 文件。结果:无法生效
  3. 备份替换 单个网站 文件 Cookie 。结果:每次清楚全部 Cookie 会导致关联的子域名等会丢失

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.