When you are adding the ability to have a Secondary tile to your Windows phone application you may from time to time find the need to debug or mimic the launching of the application via the Secondary tile w/ the correct query string values. Sadly, debugging this via the debugger is not something that I have found out how to do, if it is possible please let me know. However, I have found another way to get the same result and here is how.
- Get the exact tile uri used for the secondary tile.
- Open up the WMAppManifest.xml page under resources
- Find the line that looks like this:
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
- Replace it w/ the URI of your secondary tile like this:
<DefaultTask Name="_default" NavigationPage="/views/events/Landing.xaml?Id=1" />
- Launch the application
If you are wired everything correctly your page should load, but if you are trying to debug this it is likely you did not have everything correct. If you did not do things correctly you should get some sort of runtime error.
Hope this helps
Till next time,
08-25-2012 8:15 PM