Simple Swift iOS application (XCode project) to get APNs push messages from backends for testing, debug and development purposes.


  • Requesting Push notification access on device;
  • Logs APNs device token;
  • Logs messages on receive.

How to use:

  1. Open the porject in XCode.
  2. Go to the project’s Signing & Capabilities, choose your Team (or create one).
  3. Click on the + and add Push notifications capabilities.
  4. From the XCode start the app on the physical iOS device connected to the Mac (choose physical device instead of simulator).
  5. The App will pop-up on your connected device.
  6. Click on the Request access button in the App. Allow push notifications.
  7. In the XCode console you will get the APNs token for the testing device, that can be used in the backend to send the message to it.
  8. Send APNs message to the device by the device token and yout team P12 certificate (you have choose the team in step 1).
  9. When the message received by the app you will see the XCode log message with the message information and payload and push notification in iOS as well.


View Github