Browser is not automatically closed after logout

Hello, community.
I’m developing an app using the Okta Mobile Kotlin library. Everything seems to be working fine except for the logout.

When a user logins into my app using a Chrome Custom Tab and IDP Server returns a success message then the browser is automatically closed and a Token is retrieved.

BUT when I trigger the browser for the user to logout, thenm the Chrome Custom Tab says that the Logout was OK (the IDP Server webpage is saying this) but the browser is not closed automatically.

What should I do?


For the login you register login redirect URI with a custom schema which launches the app after redirect.
For logout are you also providing a post logout redirect URI back to your native app?