1

I've been playing with the background tasks and everything is fine (but bizzar), but now I try to do something like this:

    protected override void OnInvoke(ScheduledTask task)
    {
        if (task is PeriodicTask)
        {
            ShellToast t = new ShellToast();
            t.Content = "AAAAAAAAAAAAAAAAAAAAA";
            t.Title = "mytitle";
            t.NavigationUri = new Uri("/GotHereFromToastLink.xaml?someParam=" + 123, UriKind.Relative);

            t.Show();
        }

        NotifyComplete();
    }

Which SHOULD take me to GoHereFromToastLink.xaml when I press the toast notification, but instead it always takes me to MainPage.xaml - anybody knows if this is a bug? Or am I doing something incorrectly?

Zoe
  • 27,060
  • 21
  • 118
  • 148
argh
  • 933
  • 13
  • 37

2 Answers2

1

After contacting some really helpful MS guys I got a response - It's a known issue (aka bug) and it's already fixed but they don't have a date on the update to the Mango SDK but this will be working properly in the final release of the Mango toolset.

So for now - just ignore it.

argh
  • 933
  • 13
  • 37
0

I have the same problem! Found out that the reason is the relative URI. I assume you have used another absolute URI in your application?

  • tried the absolute param, but that throws exception that "resource can't be found" - or something like that... besides - how would a absolute url look like? bacause with how it's written it throws exception when trying to create Uri – argh Jun 22 '11 at 12:43