title: Detecting Push Notification enabled with UIBackgroundModes configured in Info.plist
body: <p>this is my question:</p>
  
  <p>I implemented this code for detected is user enabled or not Push Notification</p>
  
  <pre><code>if ([[UIApplication sharedApplication] isRegisteredForRemoteNotifications]) {
    NSLog(@"Yes, s(he) accepted Push Notification");
  } else {
    NSLog(@"No, s(he) rejected Push Notification");
  }
  </code></pre>
  
  <p>which, it works very well. But I had to implemented to receive silent Push Notification in background, so I added this code in my <code>Info.plist</code></p>
  
  <pre><code>&lt;key&gt;UIBackgroundModes&lt;/key&gt;
  &lt;array&gt;
    &lt;string&gt;remote-notification&lt;/string&gt;
  &lt;/array&gt;
  </code></pre>
  
  <p>Then, when I added this, the code that detected if user enabled or not <code>Push notification</code> always return TRUE, it doesn't matter if user enabled or not Push Notification. There is any way to detect only if the user enabled visible Push Notification (alerts in the top of the phone), allowing the UIBackgroundModes?</p>