When you click the toast, the OnLaunched method in the App class will still be called.
So, if you want to execute some logic based on your toasts, you should check the args.Arguments property in this method. This property will only matter if you set some data in the launch attribute on your XML toast.
The code looks like this: App.xaml.cs :
protected override void OnLaunched(LaunchActivatedEventArgs args) { string launchString = args.Arguments; .... }
and payload toast:
<toast launch="My_Parameter"> <visual> <binding template="ToastImageAndText01"> <image id="1" src="ms-appx:///images/redWide.png" alt="red graphic"/> <text id="1">Hello World!</text> </binding> </visual>
source share