Cartegraph / cordova-cookie-master

MIT License
7 stars 10 forks source link

WKWebView Get cookies method not returning cookie value each time #3

Open shrivallabhDeshmukh opened 4 years ago

shrivallabhDeshmukh commented 4 years ago

When I'm trying to get cookie value in WKWebview , even if cookie name is present in website , I get the error no cookies found. I'm getting the cookie value sometime and most of the time its throwing error: No cookie found

Version info


Ionic:

   ionic (Ionic CLI)  : 4.6.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.1

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : ios 5.1.1
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 22 other plugins)

System:

   ios-sim : 8.0.2
   NodeJS  : v10.15.3 (/usr/local/bin/node)
   npm     : 6.4.1
   OS      : macOS
   Xcode   : Xcode 11.4 Build version 11E146
   iOS version:13.4 

Please help me on this

KevinKelchen commented 4 years ago

This plugin fork only has partial support for WKWebView at this time.

getCookieValue does not have WKWebView support implemented while setCookieValue and clearCookie do indeed support WKWebView.

Feel free to open a PR and model your changes after how those other methods implement support. 🙂

vivascau commented 4 years ago

I created a PR that should fix this issue when you get a chance please review https://github.com/Cartegraph/cordova-cookie-master/pull/4

vivascau commented 4 years ago

@KevinKelchen would you be able to review the PR please or give me some time lines of when you could get some time to look at it ?