How to send a push notification to an individual user in the iPhone SDK?

I am creating an iPhone app where I will need push notifications.

Here I have a request that users submit their specific tasks.

When their task is completed, only the user who sent this task should receive a push notification.

What needs to be done to send push notifications to a specific individual user?

Please help and suggest.

thanks

+4
source share
2 answers

You need to specify the device token when sending a message to APNS

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingWIthAPS/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW2

You must save the device token when registering the device for push notifications.

+4
source

If I use your application, I get the device token when registering the device for push notification. For your application, you need to write code to store the device token on the server side. Then, after completing the task, you should receive the device token. Using the device token, you can send a push notification to a specific device.

Take a look at the following links;
http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html

0
source

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


All Articles