fix issue #354 (enabledRemoteNotificationTypes is not supported in iOS 8.0 and later.)