Code will be in swift 3 and Objective c.
This Guide suppose you're implementing PushBots In your app and everything works fine, if not [Check here].(https://pushbots.com/developer/docs/ios-configuration)
This guided suppose user will be logged in within your app.
Add those to After log in success
After user logged in successfully add the following.
Note: We will userID as alias for example:
Objective C :
If you want to remove alias add the following:
You can send to a specific user via PushBots Dashboard:
It is so easy, Right? 👍
Note: You can find more information: