"자동"푸시는 UI를 만들지 않는 푸시 알림입니다. 대신 앱이 온라인에서 사용할 수있는 새 콘텐츠를 가져 오거나 반응하도록 앱에 지시합니다.
iOS 8에서 Apple은 UI 및 푸시에 대한 권한을 분리했습니다. 푸시 권한은 기본적으로 자동 허용됩니다.
// 아이폰 OS 8 전 :
이것은 당신의 아이폰 OS 8 앱을 훨씬 더 안정적으로 할 수 변경, 다음 코드를 귀하의 응용 프로그램을 마이그레이션하려면 아이폰 OS 8에
을 침묵 알림을 수신 할 수있는 능력에 따라 달라집니다 의미
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound];
// 아이폰 OS 8 :
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
[[UIApplication sharedApplication] registerForRemoteNotifications];