6

我遇到了远程通知和 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.

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

0 回答 0