我正在使用带ios 9.3的iphone
protected FilterResults performFiltering(CharSequence prefix) {
return pFilter.performFiltering(prefix == null ? null :
sParent.normaliseAcronym(prefix.toString()));
}
}
}
通知注册后,此方法为:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
UIUserNotificationType types = (UIUserNotificationType) (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert);
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:types categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
return YES;
}
在[application registerForRemoteNotifications]之后,出现系统弹出窗口,我接受通知但方法是:
- (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings
{
//register to receive notifications
[application registerForRemoteNotifications];
}
永远不会打电话,我缺少什么?
这适用于ios 8
答案 0 :(得分:0)
感谢您的回答,如果有人遇到类似问题,请查看此帖子:didRegisterForRemoteNotificationsWithDeviceToken not called in ios8, but didRegister...Settings is