You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Wolfram Kriesing (JIRA)" <ji...@apache.org> on 2016/02/04 20:43:40 UTC
[jira] [Comment Edited] (CB-10395) InAppBrowser's WebView not
storing cookies reliable to local device storage
[ https://issues.apache.org/jira/browse/CB-10395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15110302#comment-15110302 ]
Wolfram Kriesing edited comment on CB-10395 at 2/4/16 7:43 PM:
---------------------------------------------------------------
My current fix/workaround is saving the cookies always on `onPageFinished` see here
https://github.com/crewmeister/cordova-plugin-inappbrowser/commit/e656d802c8c58e6c23814f823c8eac2f97e38212
this seems to fix our problem, I still dont know what the actual root cause is, I would be glad to get some insight
UPDATE, the above link did not work on android pre build21, the latest fix is like this:
https://github.com/crewmeister/cordova-plugin-inappbrowser/commit/5bf3542ded36803d2824aa53d0f7540778c113f2#diff-6b96481eda04f0b853d9e7b6637d167b
was (Author: wolframkriesing):
My current fix/workaround is saving the cookies always on `onPageFinished` see here
https://github.com/crewmeister/cordova-plugin-inappbrowser/commit/e656d802c8c58e6c23814f823c8eac2f97e38212
this seems to fix our problem, I still dont know what the actual root cause is, I would be glad to get some insight
> InAppBrowser's WebView not storing cookies reliable to local device storage
> ---------------------------------------------------------------------------
>
> Key: CB-10395
> URL: https://issues.apache.org/jira/browse/CB-10395
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin InAppBrowser
> Affects Versions: 1.1.0
> Environment: Android-22
> Reporter: Wolfram Kriesing
> Assignee: Sergey Grebnov
> Labels: Android, Triaged
>
> we are simply embedding our website http://crewmeister.com/app using `cordova.InAppBrowser.open()` looking at the sqlite storage on the device I was able to reproduce that our server-side rails cookies are not stored reliably in the cookie storage (the sqlite file under /data/data/com.crewmeister.app/app_webview/Cookie on the device)
> I saw that the cookie was updated seemingly just sometimes by accident, I was guessing that webkit's `CookieManager.flush()` might need to be called at least upon closing the app (so cookies survive across sessions).
> I have read multiple complaints from other people online too but am not able to fix it. Any hints or even fixes would be greatly appreciated.
> I guess somewhere in here the fix needs to take place https://github.com/apache/cordova-plugin-inappbrowser/blob/master/src%2Fandroid%2FInAppBrowser.java ...
> Thanks, Wolfram
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org