post request work in android but not in IOs.
See original GitHub issueBug description:
I have a application with a webview, this webview have a post request, the webview works in android and get the page, but when i try in IOs does not work.
You can visualize the token in console, and the uri
the exception occurs in postman when the token is invalid, but it is not invalid because it works in postman and android.
The page not is mine
Expected behavior: Show the page in IOs same to android.
The code
<WebView
nativeConfig={{props: {webContentsDebugginEnabled: true}}}
source={{uri: navigation.getParam('uri'), method: 'POST', body: `token=${navigation.getParam('token')}`}}
injectedJavaScript={injectedJavascript}
onMessage={() => this.props.navigation.navigate('Main')}
startInLoadingState={true}
>
</WebView>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
post request work in android but not in IOs. · Issue #953 - GitHub
I have a application with a webview, this webview have a post request, the webview works in android and get the page, but...
Read more >post request work in android but not in iOS - Stack Overflow
I have a react native application with WebView , the WebView have a post request. The WebView works as expected in android and...
Read more >[Solved]-Ionic - HTTP POST Request not working in iOS, but ...
Coding example for the question Ionic - HTTP POST Request not working in iOS, but working in Android and Web.
Read more >How to set a Post Request Using Postman API for Android ...
Working with Postman Requests to execute API's: ... 1. Download Postman and install on Android, Windows or Mac OS. ... 2. Create New...
Read more >Android: POST requests data sent to server are empty with ...
The request arrives to the server but the data send via POST requests are empty the req.body is always empty when making a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i solve this error with
@Wsm2018 Hello, you have to add it to the “source” parameter, not as a parameter itself. For instance:
Hope this helps