I'm developing an app for summers other than iOS, in this case for iOS 7 and iOS 8. I'm trying to create the Push Notification service, but the methods to register the app and others are "obsolete".
Below is the method I'm using:
[[UIApplication sharedApplication]
// obsoletos para o iOS 8
registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];
// Clear application badge when app launches
application.applicationIconBadgeNumber = 0;