13
Views
1
Comments
User Session breaks on Redirection - ios specific
Application Type
Mobile, Reactive

We have a Mobile Application, say App A .On clicking a link opens App B, and after processing a few url inputs, redirect to App C.

  • App A = OutSystems mobile app (runs in a Cordova WebView).

  • App B & App C = Reactive Web Apps, opened via InAppBrowser from App A.

Current Flow:

  1. App A (Mobile App) opens App B using InAppBrowser.open() → ✅ session inside InAppBrowser.

  2. App B uses "Redirect to URL" to open App C → ❌ session breaks because it jumps out of InAppBrowser (back to Safari or main WebView).

    This issue occurs only on ios devices, whereas on Android devices, it works as expected.
    Awaiting suggestions on how to address this issue.

    Thanks & Regards,
    Varada Rajan

2021-04-09 11-42-43
assif_tiger
 
MVP

Hi @Varada Rajan 

Interesting usecase :)
The issue you're facing with IOS is a restriction. As the request from App-B to App-C in your case is of a different url/origin the IOS inititate the intent to Safari browser.

Image Ref:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS


Here's what I would suggest to try :
1- What if your App-B send callback to App-A & App-A opens App-C ?

2- Another Approach is instead using "Redirect to URL" to open App C; use the link tag & you can also automate this by some JS to auto-click for redirect.
<a href="App-c" target="_self">redirect-link</a>
Hopefully this should keep the App-C windows in same InAppBrowser Windows

Good Luck,
Assif

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