-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webview android not saving cookies #2643
Comments
does it work when you switch to an other "real page" (i.e not just navigating inside a single page app) we've seen on our side that on our multipage app we were able to reproduce this when we stayed on the same page |
Hello, I have the same issue on android, after running inside webview:
Checking I'm setting:
|
Testing it with Injecting doesn't work neither:
|
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
up |
For those with extra time or hurries, I solved it by using JS injection and EncryptedStorage. Short description of the proposal RoboSats/robosats#258 And some key points on our implementation
Extra hint: recovering stored data on start: https://github.com/Reckless-Satoshi/robosats/blob/main/mobile/App.tsx#L34 |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
up |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
up |
UP!!!!! |
In my case, the issue was resolved with the following code modification. https://github.com/react-native-webview/react-native-webview/pull/2975/files |
any solution? |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
searching for solutions! |
up!!! |
up! |
up! v13.6.3 still not work on android. |
I am sharing the temporary solution that solved my problem. Environment Overview: The environment of my app is an app that provides the entire service by displaying one URL through a single react native webview. Encountered Problem:
Identified Cause: The reason is that in web views of certain versions of Android or higher, cookies are automatically synchronized every 5 minutes, but when less than 5 minutes have passed, the synchronization was not done and the cookies were not reflected. Temporary Solution: The solution was to manually synchronize cookies in the Android Webview when cookie-related logic was executed on my web. Cookies are applied well after synchronization. |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
UP |
y to log in from the webview on Android, after the next entry in the application, you must log in again. IOS doesn't have this problem.
Create a webview component specify a link to any site with authorization, for example github. specify parameters for the operation of cookies (sharedCookiesEnabled={true},thirdPartyCookiesEnabled={true}).
Then go to the application and complete the authorization. After authorization, restart the application and check authorization
It will be possible to continue working under an authorized user as on iOS
If applicable, add screenshots to help explain your problem.
Environment:
The text was updated successfully, but these errors were encountered: