Support push notifications for iOS8

The old api for registering notifications has been deprecated in iOS8.
This adds a conditional registration based on what platform it is being built for