Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to register for Apple Push Notification Service on Mac

I downloaded the PushyMac sample application from Apple website but cannot figure out why I couldn't register for push notification upon application startup. Here's the error I get

2013-02-27 19:53:49.737 PushyMac[61525:303] applicationDidFinishLaunching:
2013-02-27 19:53:49.738 PushyMac[61525:303] didFinishLaunchingWithOptions: 
    notification name NSApplicationDidFinishLaunchingNotification
2013-02-27 19:53:49.753 PushyMac[61525:303] application:didFailToRegisterForRemoteNotificationsWithError: with
error = Error  Domain=NSOSStatusErrorDomain Code=1 "The operation
couldn’t be completed. (OSStatus error 1.)" (kCFHostErrorHostNotFound / 
kCFStreamErrorSOCKSSubDomainVersionCode / kCFStreamErrorSOCKS5BadResponseAddr / 
kCFStreamErrorDomainPOSIX / evtNotEnb / siInitSDTblErr / kUSBPending / dsBusError / 
kStatusIsError / kOTSerialSwOverRunErr / cdevResErr / EPERM:  / Error code is the version 
of SOCKS which the server wishes to use /  / POSIX errno; interpret using <sys/errno.h>  / 
event not enabled at PostEvent / slot int dispatch table could not be initialized. /  / 
bus error /  /  / Couldn't get a needed resource; alert / Operation not permitted)

Any idea why this might happen?

like image 826
Tony Avatar asked Feb 28 '13 03:02

Tony


People also ask

What is Apple push service on Mac?

Apple Push Notification service (commonly referred to as Apple Notification Service or APNs) is a platform notification service created by Apple Inc. that enables third party application developers to send notification data to applications installed on Apple devices.


2 Answers

This happens when your app is not code signed properly

like image 58
Thomas Bartelmess Avatar answered Oct 05 '22 10:10

Thomas Bartelmess


I just received the same error message after signing out and signing back in to iCloud on my Mac. I resolved it by going to the Capabilities tab of my target in Xcode. Under iCloud, a problem was shown, which was automatically fixed by pressing the fix button.

like image 22
vomako Avatar answered Oct 05 '22 09:10

vomako