The application will not open after clicking on the remote notification '

I have a problem with remote notifications and OSx 10.8. I have enabled remote push notifications. They were also delivered to my system, but when I try to click, nothing happens. Also for this application update I had to enable the sandbox!

Mac Console Magazine:

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. 

I thought this was an AdHoc test problem or something like that. So I tried to introduce it to the AppStore with success! But the same problem occurs with the AppStore version (now I deleted it from the repository ...)

Is there a solution to this problem?

EDIT (code information):

 - (void)awakeFromNib { // Register app for remote notification [[NSApplication sharedApplication] registerForRemoteNotificationTypes:(NSRemoteNotificationTypeBadge | NSRemoteNotificationTypeSound | NSRemoteNotificationTypeAlert)]; } - (void)application:(NSApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { //Post token to server } 
+6
source share

Source: https://habr.com/ru/post/924042/


All Articles