Access to cookies or WebBroswer class from phonegap plugin running windows phone

∥☆過路亽.° 提交于 2020-01-06 12:41:23

问题


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.


回答1:


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

Usage:

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




回答2:


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?



来源:https://stackoverflow.com/questions/21170136/access-to-cookies-or-webbroswer-class-from-phonegap-plugin-running-windows-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!