hirro
hirro

Reputation: 711

Launch application automatically from a push notification on Windows 10 Mobile?

This is a reboot of question Launch application automatically from a push notification on Windows Phone 8 but for Windows 10 Mobile.

Is there any positive development on this in Windows 10 Mobile?

Upvotes: 0

Views: 560

Answers (1)

Rob Caplan - MSFT
Rob Caplan - MSFT

Reputation: 21919

It's basically the same as on Windows Phone 8.1.

You cannot directly launch an app into the foreground on receiving a push notification, but you can trigger a background task by push notification. The task can then decrypt the payload and fire a toast and tile notification to display it to the user. For a long message the toast can let the user launch the app to view the full message.

See Background tasks triggered by raw notifications in MSDN.

The Raw notifications sample demonstrates this for Windows and Windows Phone 8.1.

Upvotes: 2

Related Questions