You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have ran the sample app and it does not work there
Environment
Technology
Version
Flutter version
1.21.0-9.2.pre • channel beta
Plugin version
4.0.0+4
Android version
8.0.0
iOS version
NA
Xcode version
NA
Device information: Samsung S9+
Description
Expected behavior:
When there two instances of flutter_inappwebview in an application, and if one instance is set to incognito: true, it should clear the cookie store for that instance only and not affect the cookies for the other instance.
Current behavior:
When an application containing two instances of flutter_inappwebview have been created, with one having incognito: true, the incognito instance is also having access to the cookies of the normal instance, which defeats the purpose of incognito.
Also, if the app is removed from memory and launched again, the presence of the incognito instance clears the cookies store, thus logging us out of OAuth systems such as Google sign in.
Clone the repository to local system and run the application.
The upper webview instance is incognito:false, while the lower instance is incognito:true
Log into medium.com using your google OAuth in the upper instance.
Once login has been complete, and the home feed is visible, close the app, and clear it from memory using the android bottom navigation Recents button.
Reopen the application.
The logged in instance of the webview will also be logged out, which should not occur. (this behavior does not occur when the incognito instance is not present)
The text was updated successfully, but these errors were encountered:
Unfortunately, on Android, by setting this option to true, it will clear all the cookies of all WebView instances, because there isn't any way to make the website data store non-persistent for the specific WebView instance such as on iOS.
So, it is not possible to clear the cookies only for the specific WebView on Android. There is no official API to do it.
I will update also the incognito option docs just to make it more clear.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.
Environment
Device information: Samsung S9+
Description
Expected behavior:
When there two instances of
flutter_inappwebview
in an application, and if one instance is set toincognito: true
, it should clear the cookie store for that instance only and not affect the cookies for the other instance.Current behavior:
When an application containing two instances of
flutter_inappwebview
have been created, with one havingincognito: true
, the incognito instance is also having access to the cookies of the normal instance, which defeats the purpose of incognito.Also, if the app is removed from memory and launched again, the presence of the incognito instance clears the cookies store, thus logging us out of OAuth systems such as Google sign in.
Bug demo git repo
Steps to reproduce
incognito:false
, while the lower instance isincognito:true
medium.com
using your google OAuth in the upper instance.Recents
button.The text was updated successfully, but these errors were encountered: