for my application (angular app, uses Keycloak for auth and Cordova for making it into ios and android apps) the behavior of logout is weird observation with logout
- login to the application and keep the app ideal for a minute
- press logout the app shows a web page moment and then redirects to the default route (as if there is no logout was requested
- if you keep the app ideal for a minute, then the same thing will repeat.
- if logout is pressed within 10-15 seconds of login or after step 2 the app will log out successfully.
config at Keycloak server
I am using the following config for Keycloak init

and this is the code in the logout

for the web app (desktop and iPad) things are working as expected.
I have tried to redirect the app to the logout URL provided in Keycloak docs#logout, however, did not work as expected.
expected outcome: once logout is clicked the app should logout and the login page should be visible.
Has anyone encountered this sort of issue? if any more details are required to debug this issue please let me know.
Versions used:
- Keycloak: 10.0.0
- Angular: ~10.1.1
- Cordova: 10.0.0
- cordova-android:^9.0.0
- cordova-ios: ^6.1.1
