iPhone sometimes goes to sleep running Pandora, sometimes doesn't

Solution 1:

I figured out a reliable way to make sure the phone doesn't go to sleep while running Pandora:

  1. Launch Pandora
  2. Insert headphone jack
  3. Connect dock/power cable

If I dock the power cable before launching Pandora, then the screen will go to sleep.

Still not sure why it does this, or if it is specific to the Pandora app, but hopefully this will help someone else out :)