I just tested the code snippet you are using to create the Toast Notification
and it seems to be working correctly.
When the Toast
is clicked the application enters the OnLaunched
method of the
class with the corresponding parameters. However, due to the conditions in the aforementioned method, the
method of the App
class doesn't get invoked.
A possible solution could be to override the OnLaunched
method so that it can handle the scenario of the application being launched by a
, for example, by invoked another method. For this you could also add a launch parameter to the
so that the application can identify that it's being launched from a notification.