react-native/Libraries/PushNotificationIOS
Danny van der Jagt 200b81172e Fix for IOS 8
Summary: **Problem**
Using push notifications in IOS 8 will throw this error:
`registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.`
The problem is that the check is running on compile instead of runtime.

**Solution**
If have changed the compile if statement to a runtime if statement. The fix is tested on: IOS 7.1 and 8.* and everything is working now.
This solution is also discussed in: https://github.com/facebook/react-native/issues/1613 and it was part of  https://github.com/facebook/react-native/pull/1979. (is being separated to keep things moving)

Please let me know what you think.Closes https://github.com/facebook/react-native/pull/2332

Reviewed By: @​svcscm

Differential Revision: D2490987

Pulled By: @ericvicenti
2015-09-30 21:02:31 -07:00
..
RCTPushNotification.xcodeproj Text highlighting on iOS 2015-07-24 08:41:58 -08:00
PushNotificationIOS.js Fix dead link in PushNotificationIOS docs. 2015-09-30 15:40:27 -07:00
RCTPushNotificationManager.h Add an event for remote notification registration, and improve permissions request 2015-06-03 14:06:44 -08:00
RCTPushNotificationManager.m Fix for IOS 8 2015-09-30 21:02:31 -07:00