Add support for iOS8 remote push registration.

Fix to make push works on iOS8