title: How to set sound for push notifications in objective c?
body: <p>I’m trying to set a sound for push notification in the project which I am developing but it's not working in the device please tell me, how I can set the alert sound for the notification.</p>
  
  <pre><code>UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
      center.delegate = self;
      [center requestAuthorizationWithOptions:(UNAuthorizationOptionSound | UNAuthorizationOptionAlert | UNAuthorizationOptionBadge) completionHandler:^(BOOL granted, NSError * _Nullable error)
       {
           if( !error )
           {
               [[UIApplication sharedApplication] registerForRemoteNotifications];
               NSLog( @"Push registration success." );
           }
           else
           {
  
  
               NSLog( @"Push registration FAILED" );
               NSLog( @"ERROR: %@ - %@", error.localizedFailureReason, error.localizedDescription );
               NSLog( @"SUGGESTIONS: %@ - %@", error.localizedRecoveryOptions, error.localizedRecoverySuggestion );
  </code></pre>
  
  <p>I am using the above code in "Appdelegate.m" in "didFinishLaunch" method can anyone please tell me where I'm going wrong.</p>