Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Give Link to Toast Notification in windows 8 application

I am developing an app for windows 8 , in which I want the toast to have link to any webpage or any other metro application rather than the own application. note:The web link or App Name will be entered by the user.

like image 417
ramu Avatar asked Dec 27 '25 16:12

ramu


2 Answers

This isn't supported. Toasts can only take the user to the application that sent the toast. See below.

From MSDN:

A toast notification can contain text and/or images, but secondary actions such as buttons are not supported.

and

When a user taps or clicks the notification, the associated app is launched and the user can expect that the resulting view is related to the content of the notification. It is the only mechanism by which one app can interrupt a user in another app.

like image 86
Justin Skiles Avatar answered Dec 30 '25 15:12

Justin Skiles


You can also try this :

create a new xaml page with WebBrowser element and use following code to easily navigate to webpage.

Code Example

Here On clicking the shell Toast it is navigated to the specific page inside your app specified in the url.

It's just a workaround it's not great but will partially accomplish your task.

Thanks .

like image 42
Bharat23 Avatar answered Dec 30 '25 16:12

Bharat23



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!