RT:
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
[APService registerForRemoteNotificationTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) categories:nil];
}
#else
NSLog(@"else");
#endif