title: How to schedule local notification on some event while app is not running?
body: <p>I simply try to create <code>UILocalNotification</code>, schedule it and then close the app and wait for notification to appear. it works pretty fine, as I define fire time in 10 seconds since I create notification. </p>
  
  <p>But how to schedule local notification, or perform some code when for example charger is plugged into device? Is it possible? Can I perform changes when app is not running but app knows about changes I register to observe?</p>
  
  <p>In other words, I need to schedule local notification every time when charger is plugged in/out. No matter if app is running or not.</p>