title: Is there a way to run some code when a local notification is sent?
body: <p>I want to run some code to update the viewcontroller when my local notification has been sent out, I have tried the function <code>didReceiveLocalNotification</code>, but it only works when the user clicks on the notification, I was wondering if there was a way to run a function when the notification has been sent out?</p>