title: iOS Push Notification No Sound
body: <p>This is the code to register for push</p>
  
  <pre><code>if ([[[UIDevice currentDevice] systemVersion] floatValue] &gt;= 8.0)
  {
      [application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
      [application registerForRemoteNotifications];
  }
  else
  {
      [application registerForRemoteNotificationTypes: (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
  }
  </code></pre>
  
  <p>It works fine as the app registers with the server. </p>
  
  <p>The PEM files are also done correctly as I can send a push to my device using sandbox APNS. </p>
  
  <p>When I print my JSON payload from <code>didReceiveRemoteNotification</code> I get this:</p>
  
  <pre><code>{
      aps =     {
          alert = "Test Push Message";
      };
  }
  </code></pre>
  
  <p>The issue is when I receive my push (even when the device is set to loud) it doesn't play a sound. </p>
  
  <p>From my knowledge, if you don't specify a sound in the JSON payload it should play the default OS sound. </p>
  
  <p>In my App notification settings on the phone the sound is enabled by default because when I register I specify <code>UIUserNotificationTypeSound</code>. </p>
  
  <p>Anyone else come across this issue? </p>