I am developing an app that requires push notifications. I would like to detect when it is enabled by the user and when it is not.
It is a simple thing on iOS8 :
UIApplication *application = [UIApplication sharedApplication];
BOOL enabled = application.isRegisteredForRemoteNotifications;
But how to do that on iOS7?