M21x
January 6, 2023, 2:31pm
1
When signing out of the android application using Okta, the application crashes and this error appears:
java.lang.UnsupportedOperationException: This isn't a hierarchical URI.
I check to ensure the signout redirect URI is correct but the application keeps crashing on signout.
I can sign in just fine as well.
1 Like
louie
January 6, 2023, 3:04pm
2
Please refer to this documentation on signing users out using React Native. If you are still having issues, could you please share how you have configured the logout process in your application?
2 Likes
M21x
January 6, 2023, 5:05pm
3
I use the SignOut() method to sign users out since we use a browser sign in. This is causing the application to crash.
This works fine on iOS but does not work on android.
louie
January 6, 2023, 9:34pm
4
Are you seeing the same behavior with our React Native browser sign-in sample application ?
M21x
January 11, 2023, 7:52pm
5
Hi @louie ,
I’m seeing the same behavior with the sample application provided. The same error appears on the sample application.
louie
January 12, 2023, 9:34pm
6
Hi @M21x . I have not been able to replicate this in the sample app. Is your org an Okta Classic or an OIE org? Which version of the Okta React Native SDK are you using?
M21x
January 12, 2023, 10:21pm
7
It’s classic using PKCE, seems to work fine on iOS but android crashes when signing out.
I’m using the latest version.
louie
January 17, 2023, 6:32pm
8
Are you testing this on a physical device or Android emulator? Which version of Android are you testing on?
M21x
January 18, 2023, 2:05pm
9
I tried on Android 12 using an emulator, android 11 on a real device. Also using pixel and redmi
M21x
January 24, 2023, 2:51pm
10
@louie Any idea why this may be happening?
@M21x Were you able to fix the issue ? as i am facing the same.