webview_cookie_manager icon indicating copy to clipboard operation
webview_cookie_manager copied to clipboard

Add flush method for Android

Open m-ochyra opened this issue 3 years ago • 6 comments

Sometimes exists problem with keeping session of logged in user. On API 21+ we need to call flush() method after set cookies on Android.

This PR is fix for issue #57

Some resources: https://github.com/react-native-cookies/cookies/issues/58 https://innodroid.com/blog/post/webview-cookies-headers-and-user-agent

m-ochyra avatar Nov 15 '21 11:11 m-ochyra

I will review and provide a new version on weekends, thanks for your contribution!

fryette avatar Nov 16 '21 17:11 fryette

Hello! Any news here?

Kich-kichi avatar Apr 01 '22 11:04 Kich-kichi

@fryette Hello! I was wondering if you could review this diff for the new version.

tkrtmy avatar Jun 05 '22 02:06 tkrtmy

This PR is now almost a year old. I think I just encountered this problem (cant set a cookie on android). So I guess the project is dead?

heroheman avatar Nov 14 '22 11:11 heroheman

You can use my code. Just put this into pubspec.yaml:

  webview_cookie_manager:
    git:
      url: https://github.com/m-ochyra/webview_cookie_manager.git
      ref: feature/add-flush-for-android

m-ochyra avatar Nov 14 '22 11:11 m-ochyra

@m-ochyra thanks for the snippet. Was looking for that! 👍

heroheman avatar Nov 15 '22 09:11 heroheman