Handle Remote and Local Notifications when they wake up the app.