---
title: "#177: Debugging Push Notifications with Knuff 🐞📢"
url: https://littlebitesofcocoa.com/177-debugging-push-notifications-with-knuff
author: Jake Marsh
date: 2016-01-26
published: 2016-01-26
topics: ["Tools","Notifications"]
description: "Push Notifications were a fantastic addition to iOS in iOS 3. They can also sometimes be tricky to test and debug."
---

# #177: Debugging Push Notifications with Knuff 🐞📢

By Jake Marsh, January 26, 2016. HTML: https://littlebitesofcocoa.com/177-debugging-push-notifications-with-knuff

_Push Notifications_ were a fantastic addition to **iOS** in **iOS 3**. They can also sometimes be tricky to test and debug. We can save ourselves a ton of time and hassle with **OS X** **app** called [Knuff](https://github.com/KnuffApp/Knuff). Today we'll check it out and see what it can do. Let's get started.

Before we begin, we'll install the [free Knuff iOS app](https://itunes.apple.com/us/app/knuff-the-apns-debug-tool/id993435856) to make our lives a little easier in a few minutes.

We'll launch it on our **iOS device** (on the same Wifi network as our Mac). [Knuff](https://github.com/KnuffApp/Knuff) will display a new <i>Devices</i> button for us to choose our device, then it will in our push token for us.

We can use the <i>Knuff iOS</i> tab to try a push right away, neat!

<img src='https://media.littlebitesofcocoa.com/bite-assets/177-debugging-push-notifications-with-knuff-devices.png' style='max-width: 554px;' />

Next, we'll switch to the <i>Custom</i> tab where we'll pick our **app's certificate identity**:

<img src='https://media.littlebitesofcocoa.com/bite-assets/177-debugging-push-notifications-with-knuff-choose.png' style='max-width: 444px;' />

[Knuff](https://github.com/KnuffApp/Knuff) helps us by finding all the identities in our **Keychain** and letting us pick. (We can create a new **push certificate**/**identity** for our app with one command using [fastlane's pem tool](https://github.com/fastlane/pem)).

That's it! We can now use [Knuff](https://github.com/KnuffApp/Knuff) to configure our payload, and send pushes.  [Knuff](https://github.com/KnuffApp/Knuff) even lets us save our configurations into files that we can open later for testing different **notifications** and scenarios.

<img src='https://media.littlebitesofcocoa.com/bite-assets/177-debugging-push-notifications-with-knuff-notification-sent.png' style='max-width: 336px;' />

More info about _Knuff_ can be found at [git.io/knuff](http://git.io/knuff)
