You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The browser works good and well but has one big problem for me:
When I open a link in the in-app browser which points to a protected site I have to login, even if I'm already logged in in the normal browser (safari).
Once I'm logged in and as long as the app is still running I will stay logged in.
However if I terminate the app and reopen it, then I have to relogin again when opening a link in the in app browser.
So my questions are basically:
would it be possible to open the in app browser so it uses the same "session" / "storage" as the normal device browser? or could we pass credentials to it somehow?
would it be hard to implement? I would be willing to help if necessary.
However a few years have passed: Is there still no solution for that?
And if there isn't, would it at least be possible that the "in-app-browser" (SFSafariViewController) does not lose the cookie / session each time the app is closed?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
OS: iOS
Browser: Safari
Capacitor: 2.3.0
I'm using the official browser plugin to open an in app browser for links in my app:
https://capacitorjs.com/docs/apis/browser
The browser works good and well but has one big problem for me:
When I open a link in the in-app browser which points to a protected site I have to login, even if I'm already logged in in the normal browser (safari).
Once I'm logged in and as long as the app is still running I will stay logged in.
However if I terminate the app and reopen it, then I have to relogin again when opening a link in the in app browser.
So my questions are basically:
Thank you!
Edit:
I see that cookie sharing has been disabled when iOS 11 was introduced:
https://blog.branch.io/ios-11-safari-view-controller-cookie-passthrough-and-the-future-of-mobile-web/
However a few years have passed: Is there still no solution for that?
And if there isn't, would it at least be possible that the "in-app-browser" (SFSafariViewController) does not lose the cookie / session each time the app is closed?
Beta Was this translation helpful? Give feedback.
All reactions