title: UNNotification: Custom Sound for LocalNotification is not playing in iOS10
body: <p>I'm firing a local notification. Since <code>UILocalNotification</code> class is deprecated in iOS 10, I have used <code>UserNotifications.framework</code>.</p>
  <p>When I try to set the custom sound for the notification, the default sound is playing all time.</p>
  <p>Here is my code:</p>
  <pre><code>- (IBAction)fireLocalNotification:(id)sender {
      
      UNMutableNotificationContent* content = [[UNMutableNotificationContent alloc] init];
      content.title = [NSString localizedUserNotificationStringForKey:@&quot;Hello!&quot; arguments:nil];
      content.body = [NSString localizedUserNotificationStringForKey:@&quot;Hello_message_body&quot;
                                                           arguments:nil];
      content.sound = [UNNotificationSound soundNamed:@&quot;sound.mp3&quot;];
      
      // Deliver the notification in five seconds.
      UNTimeIntervalNotificationTrigger* trigger = [UNTimeIntervalNotificationTrigger
                                                    triggerWithTimeInterval:5 repeats:NO];
      
      UNNotificationRequest* request = [UNNotificationRequest requestWithIdentifier:@&quot;FiveSecond&quot;
                                                                            content:content trigger:trigger];
      
      // Schedule the notification.
      UNUserNotificationCenter* center = [UNUserNotificationCenter currentNotificationCenter];
      [center addNotificationRequest:request withCompletionHandler:^(NSError *error){
          
          if(!error){
              
              NSLog(@&quot;Completion handler for notification&quot;);
          }
          
      }];
  }
  </code></pre>
  <p>My sound is fine; sound.mp3 is present in project bundle itself.</p>
  <p>More info:
  <a href="https://developer.apple.com/reference/usernotifications/unusernotificationcenter?language=objc" rel="nofollow noreferrer">https://developer.apple.com/reference/usernotifications/unusernotificationcenter?language=objc</a></p>