Added iOS 7 support.

Added support for iOS 7 push notification based on solution by
@cannyboy.