I implemented push notification in my application for iPhone and I used the following code in the application to register the device.
[[[UIDevice currentDevice] identifierForVendor] UUIDString];
The code works fine on most devices. Recently, however, on some iPhone 5s devices with iOS 7.1, it returns null, and because of this, application crashes.
ios7 push-notification iphone-5 apple-push-notifications
Mehul solanki
source share