Wednesday, October 28, 2026
HomeiOS Developmentandroid - Bizarre caching concern with react native webview solely on iOS

android – Bizarre caching concern with react native webview solely on iOS

[ad_1]

That is solely taking place on IOS, on android I am getting anticipated habits.

I’ve this property on my internet view from react-native-webview

        onNavigationStateChange={(e) => {
      if (e?.url.contains(TOKEN_QUERY_PARAM)) {
        let startIndex = e.url.indexOf(TOKEN_QUERY_PARAM);
        let token = e.url.substring(startIndex + TOKEN_QUERY_PARAM.size);
        authorize(token);
        }
       }}

As you possibly can see, the webview will ship me a hyperlink with a token that I can then ship to my authorize perform to get my person signed into the app. This works the primary time the app is used however then begins caching the identical name/response in the event you do it once more. Its working because it ought to on android, however on ios the authorize perform is returning the identical info from the final time it was known as.

Has anybody skilled something like this? I attempted setting all of the totally different cache properties on the webview to be false and it nonetheless doesnt work. Any concepts??

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments