Start a new topic

How do I register push tokens?

I want to send a push to a device. How do I add the token to the user object?
1 Comment

This can be done in two steps.

1. Call `[KCSPush registerForPush]` after a logged-in user has indicated he wants to get push notifications.

2. Implement `application:didRegisterForRemoteNotificationsWithDeviceToken:` in the application delegate and in that method call:

_ _

[[KCSPush sharedPush] application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken completionBlock:^(BOOL success, NSError *error) {

//if there is an error, try again laster

Login or Signup to post a comment