Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8531527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:30:17+00:00 2026-06-11T09:30:17+00:00

I am using custom sound in uilocalnotification in ios. but its not play. file

  • 0

I am using custom sound in uilocalnotification in ios.
but its not play.
file is exist in Document folder.
notification is working with local.soundName= UILocalNotificationDefaultSoundName;

        NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
        NSString *path = [NSString stringWithFormat:@"%@/DingDongTone.wav",documentsPath];
        local.soundName=path;

Please help.
thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:30:18+00:00Added an answer on June 11, 2026 at 9:30 am

    Please re-read what apple says –

    For this property, specify the filename (including extension) of a
    sound resource in the application’s main bundle or
    UILocalNotificationDefaultSoundName to request the default system
    sound. When the system displays an alert for a local notification or
    badges an application icon, it plays this sound. The default value is
    nil (no sound). Sounds that last longer than 30 seconds are not
    supported. If you specify a file with a sound that plays over 30
    seconds, the default sound is played instead.

    according to this filename is the path of file in resources of main bundle not in the document directory

    Note : also the file shouldn’t be longer then 30 sec.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a custom sound play on a status bar notification. The
How can one load custom (not an image, nor a sound file) resource file
I'm aware of using custom configuration values for my custom services, but what if
I'm using custom renderer on JList, but none of components rendered are accessible. list.setCellRenderer(new
I would like to create a custom Android button from 9patches, but without using
Has anybody experienced this? I use notification.sound to set a custom sound and a
I want to play back WAV sound (audio track of some custom video format)
I am trying to get a custom sound to play when my Apple push
I am using a custom class based off RelativeLayout but it obviously doesn't render
I'm using the custom Jquery sound cloud player on my website. I've created a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.