cookies
cookies copied to clipboard
SetFromRespose not working on Android
I'm using cookieManager to get cookies and store them, Then I want to set them back to my Url. Here is my code which is working perfect on iOS but when I setFromResponse on Android it doesn't work properly!
Here is my code:
componentDidMount() { AsyncStorage.getItem('cookie') .then(d => { if (d) { CookieManager.setFromResponse( baseUrl, d, ).finally(() => this.setState({loading: false})); } }) .finally(() => this.setState({loading: false})); } onMessage = ({nativeEvent: {data}}) => { if (data.includes('user-login')) { AsyncStorage.setItem('cookie', data); CookieManager.setFromResponse(baseUrl, data) .then( console.log.bind( 'Done', ), ) .catch(console.log.bind(console, 'Failed')); } };
Having the same issue
3.0.0 +1 CookieManager.setFromResponse(passURL,"JSESSIONID=84ECF11A0FE5A973A57DAEEBF12ADBE9; Path=/; HttpOnly, rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Wed, 08-Jul-2020 06:11:02 GMT")
Works when debugging is turned on
Is there any updates on this issue? Debugging turned off or on same result. Is there work in progress on this issue?