Updating the app delegate code away from deprecated registerForRemoteNotificationTypes.