V
V
Valery Lyubimov2019-10-08 17:22:55
Android
Valery Lyubimov, 2019-10-08 17:22:55

React Native WebView and 302 Redirect on Android?

There is a WebView, inside I click on a link that leads to a 302 redirect. However, in onNavigationStateChange, I cannot catch the link itself with a 302 redirect, but I immediately catch the link to which this redirect leads.
At the same time on iOS it catches normally.
In my case, useful information is stored in the link with a 302 redirect in the form of GET parameters. I need to take them out.
For convenience, I dashed off a small example: https://snack.expo.io/@vudav/webview-302-redirect
Logs from different devices:
5d9c9b9ab5507358670102.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question