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. 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 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 will display a new Devices button for us to choose our device, then it will in our push token for us.

We can use the Knuff iOS tab to try a push right away, neat!

Image 1 of 3 from bite #177: Debugging Push Notifications with Knuff

Next, we'll switch to the Custom tab where we'll pick our app's certificate identity:

Image 2 of 3 from bite #177: Debugging Push Notifications with Knuff

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).

That's it! We can now use Knuff to configure our payload, and send pushes. Knuff even lets us save our configurations into files that we can open later for testing different notifications and scenarios.

Image 3 of 3 from bite #177: Debugging Push Notifications with Knuff

More info about Knuff can be found at git.io/knuff