Added support for iOS 8.0

Change registration method to no longer use deprecated method