我正在嘗試註冊對講推送通知的應用程序。他們說明這裏:https://docs.intercom.io/Install-on-your-mobile-product/enabling-push-notifications-with-intercom-for-ios迅速對講推送通知
他們給在OBJ C此代碼,但我的應用程序是迅速,這看起來像亂碼對我說:
- (void)applicationDidBecomeActive:(UIApplication *)application {
if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]){ // iOS 8 (User notifications)
[application registerUserNotificationSettings:
[UIUserNotificationSettings settingsForTypes:
(UIUserNotificationTypeBadge |
UIUserNotificationTypeSound |
UIUserNotificationTypeAlert)
categories:nil]];
[application registerForRemoteNotifications];
} else { // iOS 7 (Remote notifications)
[application registerForRemoteNotificationTypes:
(UIRemoteNotificationType)
(UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert)];
}
}
有人能解釋如何在迅速做了這一過程?
只要搜索谷歌「迅速registerForRemoteNotifications」的例子還有很多新的可用性功能適用於Xcode的7.1。 – Darko