Access to cookies or WebBroswer class from phonega

2019-09-19 03:16发布

I have to manage cookies (delete it) from my phonegap app running on a windows phone 8.

I've created a C# phonegap plugin. On the web, I've found that WebBroswer class can be the way to delete the cookies of my webView.

But I cannot find the exact way to access to this class from my phonegap plugin.

The phonegap plugin in windows phone 8 extends the "BaseCommand" phonegap class.

Any help will be really appreciated.

Julien T.

2条回答
仙女界的扛把子
2楼-- · 2019-09-19 03:39

Since I'm currently unable to add a comment to either the orignal question or the answer by ericpeters0n I'm adding this answer to save time for anyone else reading....

Basically ericpeters0n suggestion is a dead end as the plugin does not support windows phone 8 and therefore does not answer the question

Edit: How can I clear the cookies in a windows phone 8 cordova plugin?

查看更多
混吃等死
3楼-- · 2019-09-19 03:44

This might be what you're looking for: http://github.com/bez4pieci/Phonegap-Cookies-Plugin

Usage:

window.cookies.clear(function() { console.log('Cookies cleared!'); });

查看更多
登录 后发表回答