Is it possible to specify Toast notification sound on Windows Phone 8 before Update 3

偶尔善良 提交于 2020-01-06 00:41:36

问题


I understand that in Update 3 we can specify custom sounds. But is it possible to specify any different sounds before Update 3, other than the default chime? If so, how?

The following is the xml payload I'm sending to the phone

<?xml version="1.0" encoding="Windows-1252"?>
<wp:Notification xmlns:wp="WPNotification">
  <wp:Toast>
    <wp:Text1>WEATHER ALERT</wp:Text1>
    <wp:Text2>asdfasdf</wp:Text2>
    <wp:Param>/Page2.xaml?NavigatedFrom=Toast Notification</wp:Param>
  </wp:Toast>
  <wp:audio src="ms-winsoundevent:Notification.IM" loop="true" />
</wp:Notification>

but regardless of what sound I specify in the line

<wp:audio src="ms-winsoundevent:Notification.IM" loop="true" />

or

<wp:audio src="ms-winsoundevent:Notification.Looping.Alarm7" loop="true" />

it always plays the same sound.

Am I doing something wrong or is it just not possible?


回答1:


Not possible. This feature was introduced with GDR 3. Reference:

Windows Phone 8 Update 3 (OS version number 8.0.10492) introduces the ability to provide a custom sound for toast notifications. http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662938%28v=vs.105%29.aspx#BKMK_gdr3



来源:https://stackoverflow.com/questions/20492193/is-it-possible-to-specify-toast-notification-sound-on-windows-phone-8-before-upd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!