我的应用程序APNS在较少的ios8中工作得很好,但是在ios8中,我没有获得设备令牌,甚至没有调用ios8委托方法。请给我建议。
发布于 2014-11-06 10:59:20
我的应用程序也有同样的问题,请参考下面的链接并解决此问题。
可点击链接
#ifdef __IPHONE_8_0
- (void)application:(UIApplication *)application didRegisterUserNotificationSettings: (UIUserNotificationSettings *)notificationSettings
{
//register to receive notifications
[application registerForRemoteNotifications];
}
- (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo completionHandler:(void(^)())completionHandler
{
//handle the actions
if ([identifier isEqualToString:@"declineAction"]){
}
else if ([identifier isEqualToString:@"answerAction"]){
}
}
#endifhttps://stackoverflow.com/questions/26777554
复制相似问题