One useful feature of a messenger app would be to find people who are also using the application. In order to do this, we will need to talk from the PCL to the app and then send this up to the server.
The server then transmits a push notification to alert the user that there are so many users within the same area as you.
Neither iOS nor Android allows you to just use push notifications without a bit of set up. There is nothing difficult in setting up the provisioning profile for iOS; it's just a bit involved. Perform the following steps:
To start with, log in to your Apple developer and create a new application ID for this section:
Enter the description for App ID and Bundle ID. Do not use a wildcard ID for push notifications; it's not a good idea.
Once this has been filled, scroll down and select the Push Notifications option in services: