Questions tagged [react-native-cookies]

7 questions
9
votes
1 answer

How can get cookie which is set in webview in react-native?

I am trying to retrieve user entered zipcode which is added to the cookie in the webview. How do I get it? I have tried react-native-cookies which is getting an empty object. import CookieManager from 'react-native-cookies'; componentWillMount() { …
5
votes
1 answer

How can I get cookies from react native webView on iOS?

I have a Single-Sign-On site opened in a webView. After the user logs in I need to take a cookie to request a token from the API and use it in the application for all the other requests. This all works fine on the Android, but one the iOS there are…
2
votes
0 answers

react-native-video: how to send CloudFront signed cookies

I am facing issues while sending CloudFront signed cookies in react-native-video My video component look like this:
2
votes
1 answer

React Native Video Cookies

I am trying to play a secured video from CloudFront with @react-native-community/react-native-video. To reproduce the video I have to set 3 cookies: CloudFront-Key-Pair-Id, CloudFront-Policy and CloudFront-Signature. I've been able to reproduce the…
1
vote
0 answers

How to set cookie in detox tests (rn)

I need to test the view of my application based on api response. That's why I need to set up the same cookie as for my app and for api call (eg. like to be the same unauthorised user). I've tried to implement @react-native-community/cookies, but…
1
vote
1 answer

'incognito' prop for react-native-webview not working on Android

I am using an external url to handle the authentication for my react-native app. I send the user to a webview with a loginurl. Following is a snippet from my Signin.tsx code: -
0
votes
1 answer

why am i getting html response as data in GET Request of Restful api in android react native?

i am trying to fetch data using GET method for an Api. it returns data in json in ios but in android it return html Script as shown in image, let response = await…