Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

React-native cannot create cookie

$
0
0

I'am learnin react-native and I need create cookie but I can't. when I doing android app I create cookie This CookieMAnager.getInstance().setCookie(Url,"pushtoken="+Token); And webpage request this response.write Request.Cookies("pushtoken") and showing my token on page. but react-native cannot set cookie I try all cookie manager for ios this is react-native code CookieManager.set({ name: 'myCookie', value: 'myValue', domain: 'some domain', origin: 'some origin', path: '/', version: '1', expiration: '2030-05-30T12:30:00.00-05:00' }).then((res) => { console.log('CookieManager.set =>', res); }); if I import this community cookies this code error RNCookieManagerIOS.set was called with 2 arguments but expect 1 arguments.

if import this react-native-cookies this is not error but my web page cannot showing cookies but react native console showing get all cookies

"myCookie": {"domain": "some domain", "name": "myCookie", "path": "/", "value": "myValue"}} this


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>