-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add getCookies method #804
Comments
Hi Yazeed, Best Regards, |
The session and cookies are shared between the Cordova main webview and the InAppBrowser. I don't think it is and should be possible to read the cookies programatically other than standard browser methods. |
@NiklasMerz Not anymore after using WKWebview |
What do you mean? Cookies are not shared anymore? This will be fixed after these two bug fixes get released. This means when the new versions of cordova-ios and the inappbrowser plugin are out this should work again. |
Hello, any news on this? I am looking to share cookies session between system browser and cordova webview as well. @YazeedFares could you share how you achieved it? |
The required cordova-ios@6.2.0 release is now successfully published, we can now continue to work on a new InAppBrowser release (no ETA though) |
Hello All Same issue with my application as well, With wkwebview not able to maintain the session cookies in inappbrowser(v3.2.0) because of this issue we need to login every time to open third party page ,with UIwebview (which is old one) it's working fine. using v5 for cordova iOS @NiklasMerz @timbru31 @samulla @YazeedFares @tinni95 Regards |
@tinni95 @samulla @adhishnigam01 What I did to share the cookie is to implement new methods in the "CDVWKInAppBrowser.m" file then exposed them in the related JS file "inappbrowser.js", then we managed the session cookie based on our need, here is the code I did: In inappbrowser.js I added:
In CDVWKInAppBrowser.m we added the following methods:
|
Version 3.2.0 is old. I'd recommend upgrading to
Which is a patch that I think you're after. |
@YazeedFares thanks a lot for your answer!
I think in Inappbrowser.js you would add another method like this for setCookies? Thanks |
Hi @breautek Thanks for reply and sorry for late responce ,I have tride with same version but unfortunately showing the same result for me :( @YazeedFares and @tinni95 Thanks for the code ,but due to data security we can not pass the cookies manually. Do we have any plugin available which can overcome this issue ? Thanks |
Hi @breautek i am using
some part of application i want to open in |
Hi @breautek @NiklasMerz @nmanikiran I am not able to open 3rd party website through Inappbrowser v5.0.0 and cordova iOS version 6.2.0(WKwebview) on iOS its asking for login . I am facing same issue as @nmanikiran have, but still not got any solution for this, It would be great if some one help on this. |
Feature Request
Motivation Behind Feature
We are looking for a way to get the cookies from the browser to maintain the session id cookie
Feature Description
We are developing a app that connects to an API that depends on the session ID to authenticate the user after SSO login with SAML provider.
We already implemented a method to do that but looking for official support from the plugin, we can provide our implementation too
The text was updated successfully, but these errors were encountered: