title: Why are my local notifications not having sound on by default in iOS 7?
body: <p>My app uses geofencing and sends a notification.</p>
  
  <p>By default, sounds are off in Settings - Notifications for the app.</p>
  
  <p>iOS 7 to be precise.</p>
  
  <p>Does anyone know how to fix this?</p>
  
  <p>Here is the code responsible for this:</p>
  
  <pre><code>UILocalNotification *localNotif = [[UILocalNotification alloc] init];
          localNotif.fireDate = [NSDate dateWithTimeInterval:5 sinceDate:[NSDate date]];
          localNotif.timeZone = [NSTimeZone defaultTimeZone];
          localNotif.alertBody = [NSString stringWithFormat:@"You are near %@. Don't forget to check in!",place.name];
          localNotif.soundName = UILocalNotificationDefaultSoundName;
          localNotif.applicationIconBadgeNumber = 0;
          [[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
  </code></pre>