my app has a scheduled agent that checks for new mails and updates the tile if new mails received, i’d also like to play a notification sound from the background agent to notify the user about new mails like the google mail app does, however I haven’t found anything except to the SoundEffect which seems not usable from scheduled task.
is there a way to play such notification sound?
thanks
There is no way to play a sound from a background agent. (see the list of Unsupported APIs for Background Agents)
If you want to notify the user of a change you could raise a
ShellToastinstead. (depending on the users settings this may play a sound.)