<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00008chRsoSAEOkta Classic EngineSingle Sign-OnAnswered2020-06-04T20:29:16.000Z2020-06-03T17:17:59.000Z2020-06-04T20:29:16.000Z

RaviA.34990 (Customer) asked a question.

Okta OIDC not working on real android device in React Native project

I installed `"@okta/okta-react-native": "1.4.0"` in my React Native Project (v0.62.2). The OIDC works perfectly for any version of API level in Android Virtual Devices, but when I try to run the same project on a real device, then the popup to login never appears.

All versions related to this issue are:

  • React Native: 0.62.2
  • @okta/okta-react-native: 1.4.0
  • Android Version (Real device): 7.0   *(Not working in this device)
  • Android Version (Real device): 10.0   *(Not working in this device)
  • npm: 10.18.0

Tested successfully on following AVDs:

  • Api level 27
  • Api level 28
  • Api level 29

 

This issue only appears on Android real devices, not in simulators or in iOS environments.

After generating a release apk to test on real devices:

  • Works on real device with Android version 10.0
  • Doesn't work on real device with Android version 7.0

Is this have to do something with the minimum sdk which we provide in `build.gradle` i.e, 19 for my project or any other reason?

 


  • RaviA.34990 (Customer)

    Also I receive following error {"error_code": "-600", "error_message": "Authorization error"}

     

This question is closed.
Loading
Okta OIDC not working on real android device in React Native project
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply