AgentWeb icon indicating copy to clipboard operation
AgentWeb copied to clipboard

请问怎么注入Cookie

Open HolickABC opened this issue 9 years ago • 3 comments

你好,cookie怎么注入?

HolickABC avatar Jun 20 '17 03:06 HolickABC

AgentWebConfig.syncCookieToWebView();

Justson avatar Jun 22 '17 02:06 Justson

设置cookie出现这个问题 CookieSyncManager::createInstance() needs to be called before CookieSyncManager::getInstance()

GongZiZhang avatar Jun 25 '17 03:06 GongZiZhang

@GongZiZhang use AgentWebConfig.syncCookie() after AgentWeb.with()....ready().go() because AgentWebConfig.initCookiesManager() runs in ready() function. https://github.com/Justson/AgentWeb/blob/d59c4263f443bee7c42dddf88d4230c541f6491a/agentweb-core/src/main/java/com/just/agentweb/AgentWeb.java#L433

townmi avatar Jul 31 '18 02:07 townmi