Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom audio for toast notification is not working for desktop bridge application #2

Open
AmolGuldagad opened this issue May 26, 2021 · 0 comments

Comments

@AmolGuldagad
Copy link

AmolGuldagad commented May 26, 2021

Custom audio for toast notification is not working for desktop bridge application

  • We have desktop bridge app

  • Trying to set custom audio for toast notification
    `ToastContent toastContent = new ToastContent()

          {
              Visual = new ToastVisual()
              {
                  BindingGeneric = new ToastBindingGeneric()
                  {
                      Children =
                      {
                          new AdaptiveText()
                          {
                              Text = title
                          }
                      }
                  }
              }
          };
    toastContent.Audio = new ToastAudio()
    {
        Src = new Uri("ms-appx:///Assets/Audio/sound.m4a")
    };`
    
  • we tried with more options with creating URI object like below:
    `Src = new Uri("ms-appx:///Asset/sound.wav")

    Src = new Uri(@"ms-appx:///Asset/sound.wav")
    Src = new Uri("ms-appx:///xx/Asset/sound.wav")
    Src = new Uri("pack://application:,,,/LibraryName;component/Asset/sound.wav")
    Src = new Uri("pack://application:,,,/Asset/sound.wav")
    Src = new Uri("ms-appdata:///local/sound.wav")
    Src = new Uri("ms-appdata:///temp/sound.wav")
    Src = new Uri(@"C:\Final\sound.wav")
    Src = new Uri("ms-appdata:///local/sound.wav")
    Src = new Uri($"pack://ms-appx:///Asset/sound.wav")`

with all options - its not working
Also we tried with creating Appx package with above URI but still same problem.
We are getting default sound or invalid URI errors

Note: It works properly with core UWP application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant