Updated push notification code in AppDelegate for iOS8