I am using Monotouch for mac and have gone through the steps to retrieve a provisioning profile certificate enabling push notification in the process. I have a working app and am now experimenting with apns-sharp and moon-apns but cant’ figure out how to retrieve my device token. I’m hoping someone can provide me with detailed and straightforward steps to achieve this.
Share
In your
FinishedLaunchingmethod, register the app for remote notifications, through theUIApplicationobject you get in it:Then, in your
AppDelegateclass, override theRegisteredForRemoteNotificationsmethod:You also have to override the
FailedToRegisterForRemoteNotificationsmethod, to handle the error, if any: