Tôi đang sử dụng SDK Parse để thông báo đẩy trong dự án của mình. Tôi đã thêm mã trong didFinishLaunchingWithOptions:
như được đưa ra trên parse.comRegisterUserNotificationCài đặt không hoạt động trong ios 6.1
UIUserNotificationType userNotificationTypes = (UIUserNotificationTypeAlert |
UIUserNotificationTypeBadge |
UIUserNotificationTypeSound);
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:userNotificationTypes
categories:nil];
[application registerUserNotificationSettings:settings];
[application registerForRemoteNotifications];
nó làm việc tốt, nếu thiết bị hoặc phiên bản mô phỏng là iOS 8, nhưng nó không làm việc trong iOS 6.1, và thông điệp xuất hiện
[UIApplication registerUserNotificationSettings:]: unrecognized selector sent to instance 0x208406c0
Bất kỳ ai có thể cho tôi biết cách tôi có thể giải quyết nó?
Làm đẹp nhưng bất cứ nhược điểm? – okysabeni
@Yko, tôi đã sử dụng điều này trong nhiều dự án nhưng không gặp bất kỳ vấn đề gì. –