In order to test the scenario of the app starting in background mode (rather than already running in the background) when the notification arrives, you can start the app on your phone with Xcode, then kill the app by stopping it in Xcode.
iOS Push Notification Background Download Demystified
Nicholas Solter
23414

There is an easier way: In scheme settings, there is an option „Wait for executable to be launched“

http://i.stack.imgur.com/8NILl.png

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.