fryette / webview_cookie_manager

MIT License
48 stars 52 forks source link

Add flush method for Android #58

Closed m-ochyra closed 5 months ago

m-ochyra commented 3 years ago

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

fryette commented 3 years ago

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

Kich-kichi commented 2 years ago

Hello! Any news here?

tkrtmy commented 2 years ago

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

heroheman commented 2 years ago

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?

m-ochyra commented 2 years ago

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
heroheman commented 2 years ago

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