16
Views
1
Comments
[IdP Mobile] InAppbrowser does not close automatically after logging out with SamlLogout
Question
idp-mobile
Mobile icon
Forge asset by João Barata
Application Type
Mobile
Service Studio Version
11.54.67 (Build 63420)

When logging out using the SamlLogout block of IdP Mobile 2.2.3, there is an issue where InAppBrowser does not close automatically after logging out. In the previous version (IdP Mobile 2.2.1), InAppBrowser closed automatically after logging out. Is it possible to fix this problem? 

2024-07-12 05-57-50
Gourav Shrivastava
Champion

Hello @junpei ikeda 

The issue with the InAppBrowser not closing automatically in IdP Mobile 2.2.3 during logout could be due to changes in the plugin or differences in how the logout process is handled in the updated version.

I don’t have direct access to IdP Mobile Login, but I can suggest the following:

Steps to Address the Issue:

Use InAppBrowser Events:

Add a listener for the exit event of the InAppBrowser to ensure it closes after logout:

  1. var inAppBrowser = cordova.InAppBrowser.open(url, '_blank', options); 
  2. inAppBrowser.addEventListener('exit', function () {   
  3.  // Code to handle browser closure if needed 
  4. }); 

Manually Close the Browser:

If the logout process completes but the browser does not close, call inAppBrowser.close() in the appropriate part of your logout flow.

Check Logout Callback:

Ensure the IdP Mobile Logout callback is correctly configured to trigger the closure of the InAppBrowser.

Revert to Previous Version (Temporary Workaround):

If the issue persists and an immediate fix isn't available, consider reverting to version 2.2.1, where the behavior worked as expected, until a proper solution is identified.

Raise a Ticket:

If this behavior is unintended, report the issue to OutSystems support or the plugin's maintainers for a fix in the next release.



Hope it will help you 

Thanks 

Regards 

Gourav Shrivastava

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.