Skip to content
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

Plugin not working with cordova-ios 6.1.0 #5

Open
drogerie21 opened this issue Sep 10, 2020 · 6 comments
Open

Plugin not working with cordova-ios 6.1.0 #5

drogerie21 opened this issue Sep 10, 2020 · 6 comments

Comments

@drogerie21
Copy link

This plugin is not working anymore since cordova 6.1.0 (probably cordova-ios 6.0.0 too).
Always getting the error:
"No cookie found"

@RTK
Copy link
Owner

RTK commented Sep 10, 2020

I think it may be the case because cordova-ios removed the usage of UIWebview an forces the WKWebview now. Can you confirm, that you have used the UIWebview before?

Furthermore, as stated here https://stackoverflow.com/questions/33156567/getting-all-cookies-from-wkwebview, the access to cookies should work the same way but values may be added delayed. Can you confirm, that the expected cookies are added sometime after?

@drogerie21
Copy link
Author

No, we have used the WKWebview before.
What do you mean that values may be added delayed? We waited a couple of seconds, but the cookies could not be found...

@drogerie21
Copy link
Author

This is most probably a problem with the new release of the inappbrowser (and cordova-ios in turn only works with the new inappbrowser 4.0.0). We are trying to get cookies that are set by preauth-site, that is opened by the inappbrowser. See:
apache/cordova-plugin-inappbrowser#753

@RTK
Copy link
Owner

RTK commented Sep 11, 2020

So it comes down to the InAppBrowser plugin for iOS not writing cookies into the main Cordova-webview? If so, then this plugin works correctly? Unfortunately I cannot see a solution as long as there are multiple WKWebview instances involved which do not share their cookies.

@drogerie21
Copy link
Author

No, we have used the WKWebview before.

Hi again. We checked again and we found that the inAppBrowser-Plugin has used the UIWebview before (we didn´t know that you can configure this and assumed that the plugin uses the WKWebview too). The new InAppBrowser-Plugin (4.0.0) drops support for the UIWebview. If we configure the inAppBrowser-Plugin do use the WKWebview we cannot get the cookies even with cordova-ios 5.1.1.
Do you know if there are any chances to get the Cookies from a third party service (so cross origin) within a wkwebview scenario?

@ChrisTomAlx
Copy link

any luck with this issue? I am facing a similar problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants