OKTA Authentication (In-App browser) within app not working on Android (Pocophone)

Hi everyone,

Using the React Native OKTA Library/SDK (@okta/okta-react-native 1.4.1), we integrated the OKTA flow within our app. We’re triggering the in-app browser with the OKTA sign in page to let users authenticate.

This flow works on several iPhone and Android devices we tested. But on a specific Android device (Pocophone F1 with Android: 10), we found out that the OKTA library couldn’t trigger the in app browser. After some investigation we could pinpoint the problem was the default browser of the phone (which was the MI Browser). After changing this default browser to Chrome, the flow worked on the Pocophone.

It seems that OKTA can’t trigger the MI Browser. We tried to pass the “supportedBrowsers” value (with the packageId of chrome and MI Browser) as indicated here, but no luck.

As for Logcat logs, we couldn’t find any pointers regarding the issue:

First of all, is this a known issue? If yes are there any workarounds we can look into?

If this is not a known issue, is there a possibility to hook into a method or callback (the existing onerror callbacks weren’t triggered in this case), so that we can notify the user with a proper message that the login is not working on that specific device? If we could even validate and check this upfront without the user even interacting with the Sign In button, would be even better. That way we could notify the user pro-actively and provide alternatives.

@YakupKalin Could you email developers@okta.com with the issue and environment details ?

Hi @gpadma,

As an update: to validate this behaviour, I tested it with the OKTA React Native sample project:

After adjusting the OKTA config, and running it on an Android 6 emulator, I could see that the webview didn’t trigger there too.

The OKTA RN sample (browser-sign-in) is using: “@okta/okta-react-native”: “^1.4.0”.

I’ll also provide those details by mail as requested.

Regards,

Yakup

Hi @YakupKalin, Is this issue resolved for you? I am facing the same issue.
Please help me to resolve this issue.
Thank you in advance.