Welcome
Login
Sign up
Home
Solutions
Forums
How can we help you today?
Enter your search term here...
Search
Login
or
Signup
to submit a new ticket
Check ticket status
Start a new topic
Discussions
Kinvey Forums
iOS
How do I register push tokens?
M
Mike
started a topic
over 7 years ago
I want to send a push to a device. How do I add the token to the user object?
1 Comment
M
Mike
said
over 7 years ago
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
More topics in
iOS
Why do I get "Undefined symbols" errors when building with KinveyKit?
When using social login, to perform a log-out, do I need to log out of the social network, Kinvey, o
How can I assign additional properties to users?
Does KinveyKit support 64-bit ARM devices, such as iPhone 5s?
Authorization Token Invalid or Expired
BOOL and how it is stored in the database.
Offline saving throwing errors
Custom endpoint not able to form request object
Security through business logic
See all 437 topics
Mike