UnRegister method doesnt work for me

Aug 3, 2012 at 2:34 PM

Hi,

I'm using the "Windows8.Notifications" nuget library to implement the Notfications server/client.

Everything works fine, I get notifications right to the wide tile.

The issue, the UnRegister method doesn't work at all, This is my code:

            var toggle = sender as ToggleSwitch;
            var client = new NotificationClient("someID", "client", "http://myzure.azurewebsites.net/api/endpoint");
            if (toggle.IsOn)
            {
                toggle.IsEnabled = false;
                var val = await client.Register("MainTile");
                toggle.IsEnabled = true;
            }
            else
            {
                toggle.IsEnabled = false;
                await client.Unregister("MainTile");
                toggle.IsEnabled = true;
            }
it gives me this exception:
Channel is not open. Call register method first.
Can someone help me please?