单击远程通知后,应用程序无法打开

Chr*_*ler 6 macos apple-push-notifications osx-mountain-lion

我有远程通知和OSx 10.8的问题.我启用了远程推送通知成功.它们也被发送到我的系统,但是当我尝试点击时,没有任何事情发生.此外,对于此应用更新,我必须启用沙盒!

Mac控制台日志:

29.08.12 11:03:50,600 usernoted[194]: Cannot find originating application to launch for event action.  file://localhost/Users/clueckler/Library/Developer/Xcode/DerivedData/mysms_OSX_Client-bcaianxrdhpztmdcnsrgzqdtqmvi/Build/Products/Debug/mysms_test.app/ is not the same app as the one that sent the original notification.
29.08.12 11:03:50,600 usernoted[194]: Error finding application com.mysms.osx.client.test.
Run Code Online (Sandbox Code Playgroud)

我认为这是AdHoc-Test的一个问题.所以我试着成功地将它提交给AppStore!但是AppStore版本出现了同样的问题(现在我从商店中删除了它......)

有这个问题的解决方案吗?

编辑(代码信息):

- (void)awakeFromNib { 
// Register app for remote notification 
[[NSApplication sharedApplication] registerForRemoteNotificationTypes:(NSRemoteNotificationTypeBadge | NSRemoteNotificationTypeSound | NSRemoteNotificationTypeAlert)]; 
} 

- (void)application:(NSApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { 
//Post token to server 
} 
Run Code Online (Sandbox Code Playgroud)