I'm trying to use a plugin in wp8 cordova to clear the WebBrowser cookies. I already have it communicating with JavaScript and I have something like this in my c# file:
using WPCordovaClassLib.Cordova;
using WPCordovaClassLib.Cordova.Commands;
using WPCordovaClassLib.Cordova.JSON;
using Microsoft.Phone.Controls;
namespace WPCordovaClassLib.Cordova.Commands
{
public class Clear : BaseCommand
{
public void clear(string options)
{
// all JS callable plugin methods MUST have this signature!
// public, returning void, 1 argument that is a string
System.Diagnostics.Debug.WriteLine("working..");
}
}
}
And I searched now to clear cookies in wp8, and we call the method ClearCookiesAsync(). How I call that method on my clear() function on that code?
Best regards, Pedro