You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/09 19:39:10 UTC

[GitHub] [cordova-android] kirkHawksworth commented on issue #802: Cookies not stored on first application launch

kirkHawksworth commented on issue #802: Cookies not stored on first application launch
URL: https://github.com/apache/cordova-android/issues/802#issuecomment-520039662
 
 
   Thanks for the link @devjva it looks like that is indeed the issue.
   
   It seems to be fixed in Chrome 77+, they've also committed to doing a respin of 76 to fix this issue
   
   There are a couple of workaround suggested in that thread, most useful is probably the quick restart of the application
   
   https://bugs.chromium.org/p/chromium/issues/detail?id=991107#c19
   
   > right now we considering to use this plugin (https://github.com/dpa99c/cordova-diagnostic-plugin#readme)  and do automatic restart for users for first time
   > 
   > 
   > just for example:   
   > if(!window.localStorage.getItem('__isFirstAppLoad')) {
   >       window.localStorage.setItem('__isFirstAppLoad', 'false');
   >       if(cordova && cordova.plugins && cordova.plugins.diagnostic){
   >           cordova.plugins.diagnostic.restart(function () { }, false);
   >        } 
   > }
   > 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org