Search code examples
scheduled-taskstoastwindows-phone-7navigateuri

ShellToast.NavigationUri ignored - the toast takes me to MainPage.xaml // WP7.1 Mango


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?


Solution

  • 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.