CookieSyncManager is now deprecated, what can I use instead?

后端 未结 3 1787
暗喜
暗喜 2020-12-14 18:36

I\'m using a cookie in my app which works fine in all browsers, but in android device the cookie is not setting as fast as I wanted, it takes some time until cookie is saved

3条回答
  •  -上瘾入骨i
    2020-12-14 19:14

    Nothing : "The WebView now automatically syncs cookies as necessary. You no longer need to create or use the CookieSyncManager."

    As DarkKnight said, you can test if your app target below API 21 Lollipop (5.0), if not, you don't need anymore CookieSyncManager.

提交回复
热议问题