For iOS push notification services functionality we need a device token (a unique device id generated by device OS for Push Messages communications) on which we can receive push notification messages. To generate the device token we have to add UIApplication delegate methods of Push Notifications. Here is one of them which provides us device token.
Device token param will give you a string containing symbols and punctuation characters. before using that you have to clean it like this:-