Overview
For those who are new to APNS, let’s have a brief introduction on how APNS works.
As mentioned in Apple’s official documentation :
- The app registers for push notifications with SSL connect.
- Device receives the device token which acts as an address where the notifications will be sent.
- Client app uses this device token to send the notifications.
- Client app send this device token to your server
- When the app wants to push any message, the server send a push notification to APNS
- And then APNS send the push notification to user’s device.
Usage at Naukri
Currently, in Naukri, push notifications are used for the following functionalities:
- Recommended jobs Sending Recommended jobs to the users.
- Update Profile – keeping your profile updated helps the naukri to suggest more relevant jobs to their users.
- What’s New – Announcing new features and updates for better experience of users.
- Apply History – Showing apply history of the user helps the user to track his actions.
Handling Badge Number
Badge is a little red circle in the top right corner of your iOS app, which tells the user that there is some information to be read. But there are some cases in which the badge number displayed over the app is incorrect. This can confuse and frustrate the user. So, to handle such issues Naukri has adopted few solutions.
- Badge number always come from server in payload. So, in order to ensure that the badge number should be cleared after the notification has been read , the badge counter is first locally updated and then server is notified about the change.
- If a user is logged in from multiple devices then all the devices receive the push notifications.
- The device id is cleared on the server if user logout to ensure that the next user whosoever will login on the same device doesn’t receive unnecessary notifications
Nice work…!!
amazing article on apns. Nice work ..(Y).
Well Done ??
Keep Up The Gud Work ✌
Great Work!
Nice article. Exactly what I was looking for. Thanks.