Fixes for dealing with UIUserNotificationTypes on iOS8, while still maintaining the old functionality in iOS6-7.