This repository has been archived by the owner on Jan 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
CookieManager.set returns undefined #14
Labels
bug
Something isn't working
Comments
Hey @edo1493! Thanks for the issue. Could you provide a code snippet for what you are trying to achieve? |
Hi @safaiyeh, I am just trying to set a cookie and trying to see if this was set. :) I was trying with getAll, but couldn't see anything, and double checked via Safari dev tools. Would this work?
|
It is a known issue that It currently works if you pass true for webKit. This issue has a couple work arounds for you to try |
Action items from this: • |
Also @edo1493 I'll happily take a PR with NSLog's deleted :) |
this currently works for me @edo1493 CookieManager.set({
name: 'myCookie',
value: 'myValue',
domain: 'example.com',
origin: '/',
path: '/',
version: '1',
expiration: '2015-05-30T12:30:00.00-05:00'
}, true).then((res) => {
CookieManager.getAll(true).then((res) => {
console.log(res);
})
}); |
Hi @safaiyeh, thanks for pointing it out. I am going to double check. :) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey guys,
I was trying to set a cookie, but it's always returning undefined, which is due to https://github.com/safaiyeh/react-native-cookie-store/blob/master/ios/RNCookieManagerIOS/RNCookieManagerIOS.m#L69.
I have tried to call getAll instead, but I can't see it. Is there a way to figure out if this has been set or not? Thanks and sorry for the generic question.
There is also this that might be removed https://github.com/safaiyeh/react-native-cookie-store/blob/master/ios/RNCookieManagerIOS/RNCookieManagerIOS.m#L54.
The text was updated successfully, but these errors were encountered: