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

时间:2012-08-29 09:16:35

标签: macos apple-push-notifications osx-mountain-lion

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

Mac-Console日志:

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.

我认为这是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 
} 

0 个答案:

没有答案