Reputation: 187
I have an UWP app that does a background download and I have toast notifications on the progress, however I don't want it to annoy the user every time with sounds and vibration. I found the ToastAudio and set that with silent, now no sounds for progress updates which is great until I have a device with vibration. Now my phone was vibrating about every 2 seconds for the 3 minutes it took to download.
I've not been able to find a vibration option in the toast specs, is there one? For now I've limited my updates to every minute and when done to minimize the annoyance.
Upvotes: 1
Views: 438
Reputation: 985
Andrew from the Windows Notifications team here.
You should use a "ghost toast" for your scenario - the toast will silently go into Action Center without vibrating or alerting the user. To create a "ghost toast", set the ToastNotification.SuppressPopup
property to true.
That way, the user can stay informed about your download by checking Action Center without the notification popping up, or making a sound, or vibrating. You don't even need to set your audio to silent - it will be muted if SuppressPopup
is true.
Upvotes: 3
Reputation: 884
As far as I know, vibration on toast notifications is built-in behavior controlled by user. You can't override it, but you can offer user to change settings for your app thru the ms-settings:notifications protocol. Just in case - there are not options to open notification settings for specific app.
Upvotes: 1