title: How does UIApplication cancelAllLocalNotifications work between app updates?
body: <p>Does anyone know how the cancelAllLocalNotifications method works on UIApplication?  I'm wondering specifically how iOS knows what to cancel.  Does it know by App ID?  Or does it use the version number of the app somehow?</p>
  
  <p>What I'm experiencing right now is more notifications than I expect.  This is the workflow:</p>
  
  <ol>
  <li>Cancel all notifications on app start</li>
  <li>Schedule notifications on app exit</li>
  <li>*When scheduling, add the notification info to a "Recents" list</li>
  <li>*When scheduling, schedule only 1 notification per day (verified in logging statements in XCode before I disconnect my phone).</li>
  </ol>
  
  <p>Now, this is what I'm experiencing:</p>
  
  <ol>
  <li>Receive 4 notifications per day</li>
  <li>Only 1 of the notifications shows up in my "Recents" list (which makes sense, because that's all I'm scheduling)</li>
  </ol>
  
  <p>Previously, I my # of notifications per day set to 3. Then I updated the version number (say, from 1.1.0 to 1.1.1) for the "cancelAllLocalNotifications" method was called. </p>
  
  <p>So, if the canceling of notifications is based upon the app's version/bundle ID in any way, I'm getting old notifications along with the new ones. </p>
  
  <p>However, if it is not, and iOS knows to cancel notifications scheduled from the previous version 1.1.0, then I have no idea where these additional notifications are coming from.</p>