Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Mobile Notifications Custom Sound

Discussion in 'General Discussion' started by jimmyx1000, Oct 27, 2019.

  1. jimmyx1000

    jimmyx1000

    Joined:
    Mar 11, 2015
    Posts:
    1
    Hi

    I am working with Unity Mobile Notifications (From Package manager Mobile Notifications 1.04)

    how can i use a custom sound file when sending a notification
    what would be the code and where do i insert the code for the custom sound file

    curently when notification is displayed only the android phone default sound is played

    thankyou
     
  2. MohHeader

    MohHeader

    Joined:
    Aug 12, 2015
    Posts:
    41
    I was wondering about the same issue today ( but for iOS )
    Found this in SourceCode

    Code (CSharp):
    1. // TODO add a way to specify custom sounds.
    2.     content.sound = [UNNotificationSound defaultSound];
    :)
    So I think it may be in the roadmap, but when? I have no clue

    :)
     
  3. darkguy2008

    darkguy2008

    Joined:
    Mar 26, 2020
    Posts:
    8
    Is this still going on as of March 2020?
     
  4. VoxelMatt

    VoxelMatt

    Joined:
    Apr 22, 2015
    Posts:
    39
    ..... April 2022 ?


    How does this package still have a TODO on it for critical notification features?!
     
  5. stain2319

    stain2319

    Joined:
    Mar 2, 2020
    Posts:
    417
    Is this even a thing? I don't think I've ever had an app with a custom notification sound, unless I set the app to have a custom notification sound on my phone settings. And since users can override and set whatever notification sound they want, this seems like an odd thing to do...
     
  6. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,763
    It's a thing and it's also one of the most annoying things an app or game can do.
     
  7. VoxelMatt

    VoxelMatt

    Joined:
    Apr 22, 2015
    Posts:
    39
    If you have an obnoxious sound, it’s annoying.

    But I consider unique sounds to be far superior. I don’t WANT every notification to sound the same on my phone. Sound is a very important sense, and it’s up to us as developers to use it.
     
  8. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,763
    I want all my notifications to have the same sound unless I change them myself in my system settings. The app should only ever drive sound when it's in active use.
     
    stain2319 likes this.
  9. stain2319

    stain2319

    Joined:
    Mar 2, 2020
    Posts:
    417
    I agree 100%. And in fact the vast majority of apps on my phone have been silenced and that is especially true for games (and even more especially for ones that continuously try to convince you to play them). Otherwise I would be hearing 20 dings a minute...