enabledRemoteNotificationTypes is deprecated in iOS8+

The **enabledRemoteNotificationTypes** method is deprected for iOS8+, so using **currentUserNotificationSettings** instead