react-native-wkwebview icon indicating copy to clipboard operation
react-native-wkwebview copied to clipboard

not getting cookies ?

Open BlackSword101 opened this issue 6 years ago • 2 comments

hi, i'm trying to get cookies with CookieManager from 'react-native-cookies' but when

 CookieManager.getAll()
            .then((res) => {
                console.log('CookieManager.get =>', res); // => 'user_session=abcdefg; path=/;'
            });

it return empty on simulator resulte, and sendCookies={true}, any help please.

BlackSword101 avatar Aug 02 '18 20:08 BlackSword101

@BlackSword101 any luck resolving this? Does it work on plain RN WebView?

jacquescrocker avatar Sep 09 '18 06:09 jacquescrocker

for the CookieManager there is a solution for this in the master branch that you need to pass true as an arg like

CookieManager.getAll(true).then(....

enahum avatar Nov 13 '18 13:11 enahum