Implement Push Notifications in iOS with Swift

Francisco Igor
8 min readDec 7, 2018

In this post we implement Push Notifications in iOS with Swift. Actually, this process is easier than before, with only a small set of steps:

  1. Activate Push notifications in your iOS project
  2. Request permissions for User notifications
  3. Register in Apple Push Notifications service
  4. Sending Test notifications
  5. Handling Notifications in your app

Get an Apple Developer Account

First of all, you need an Apple Developer Account to access the Apple Push Notifications service. However, you can see this post this post about how to Publish an iOS application in the App Store if you need to create an account for the first time.

Activate Push notifications in your iOS project

  1. Open the application project properties (the root icon in your project)
  2. In General, define an unique “Application Bundle” name. For example, me.developer.ios.notifications.
  3. In the Capabilities section, activate “Push Notifications”. As a result, your App ID will be automatically registered in the App Store.



Francisco Igor

Programming from the past century. Worked with many programming languages and software development tools for desktop, web and mobile.