Windows Phone 8.1 Toast Notification does not play custom sound

I really need your help. I am a Windows application developer and I need an application to play a sound when I receive a toast. I tried a lot of different loads, and everything works fine (even using silence = "true" in the audio tag), except, of course, for custom sound.

I tried my dev server and I tried with a local toast sent from the application and nothing works.

My current XML download is as follows (I got it from an example on MSDN):

string audio = "ms-winsoundevent:Notification.Mail";
string toastXmlString = "<toast duration='long'>"
                   + "<visual version='1'>"
                   + "<binding template='ToastText02'>"
                   + "<text id='1'>Sound:</text>"
                   + "<text id='2'>" + audio + "</text>"
                   + "</binding>"
                   + "</visual>"
                   + "<audio src='" + audio + "' />"
                   + "</toast>";

The only sound I ever managed to play was the default window sound. There are no ms-winsoundevent sounds, no ms-appx or ms-appdata sounds.

XML MSDN. (mp3 wav) (18 , 5 , 10 ..).

, XML , , . , , .

, .

0
1

, , duration="long".

MSDN:

Note that neither looping audio nor long-duration toasts are not supported on Windows Phone 8.1.   duration="short", .

NOTE sound , - , , . 10 , short 5-6 , loop , .

, :)

0

All Articles