title: Invisible APNS Push Notifications
body: <p>I'm adding APNS push notifications to my app. I correctly registered all the certificates, I store correctly into a database all the device's tokens, and I'm also able to send notifications to them.</p>
  
  <p>This is an example of the push notification I send:</p>
  
  <pre><code>$payload = '{
        "aps" :
          {
              "alert" : "' . $message .  '",
          "content-available" : 1,                     
              "badge" : 0,            
          },
        "data-id" : 11
      }';
  </code></pre>
  
  <p>This notification contains a variable called <code>data-id</code>. I'd like my app, before showing the notification, to check if the user would like to receive that specific notification with that data-id.</p>
  
  <p>I found this method that could do what I'm looking for:</p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
  </code></pre>
  
  <p>The problem is that the notification is shown to the user before calling that method.
  Is it possible send an "invisible" notification that users don't see, after which it calls the previous method that checks if the notify has to be shown or not?</p>