I'm hoping someone may have solved this already: I have a single sever (on heroku) that serves both my dev and production app and thus needs to connect to either sandbox or prod ("push") APN servers. What is the best practice for doing this? Meaning, I guess I can create 2 APN.Connection objects, but what is the best way to know which one to use? Should I hard code this in the app and have it send the server type along with its device token? Any other thought?