Issue with using webview component on Android

Hello experts.

I’m building an app where I’m implementing an oauth flow via PKCE. I’m using the webview to open the initial login page and then the onLocationChange event to check when I receive the code back after a successful login. This works fine on iOS. But on Android (Samsung S22) it hangs for a very long time and eventually fire. I initially thought it was an endless loop, but that doesn’t seem to be the case. I tried to use google and then after a delay to route to bing. This works fine.
So for some reason it stops firing the event on android.
Any one else experiencing this?