title: Silent push notification vs. normal push notifications
body: <p>I send from my webspace via PHP push notifications to my swift 2 app.
  I do it like this was:</p>
  
  <pre><code>$body['aps'] = array('alert' =&gt; 'HELLO', 'badge' =&gt; 1, 'sound' =&gt; 'default');
  </code></pre>
  
  <p>Now I would like to working with silent push notifications, too.
  I learned, that I can send silent push like this:</p>
  
  <pre><code>$body['aps'] = array('content-available' =&gt; 1);
  </code></pre>
  
  <p>And in my app delegate I do something after receiving a silent push.</p>
  
  <pre><code>func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler handler: (UIBackgroundFetchResult) -&gt; Void) {
  
     print("DO SOMETHING IN THE BACKGROUND")
  
      handler(UIBackgroundFetchResult.NewData)
    }
    return
  }
  </code></pre>
  
  <p>This works fine.
  But the problem now, is that this print will be come each time, if I send a normal push, too.</p>
  
  <p>That is not correct. The print "DO SOMETHING IN THE BACKGROUND" should only execute if a silent push will be receive.</p>
  
  <p>What am I doing wrong?</p>