New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to support both sandbox and production in same server #227

Closed
skasriel opened this Issue Oct 27, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@skasriel

skasriel commented Oct 27, 2014

Hi,
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?

Thanks!

@skasriel skasriel closed this Oct 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment