【发布时间】:2011-03-28 08:00:35
【问题描述】:
我在推送通知后没有获得任何启动选项;这是我的代码,但调试区域中似乎没有打印 NSLog。
UILocalNotification *localNotif =
[launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
if (localNotif) {
NSString *itemName = [localNotif.userInfo objectForKey:@"aps"];
NSLog(@"Custom: %@", itemName);
} else {
NSLog(@"//////////////////////////");
}
当我打开应用程序(通过按下推送通知上的视图)时,它会转到 didReceiveRemoteNotification 脚本,我不确定这是否意味着发生..
感谢阅读。
【问题讨论】:
标签: iphone push-notification apple-push-notifications