python - Using Sandbox servers with apns -


what difference between using apple's sandbox servers or not push notifications? example:

apns = apns(use_sandbox=true, cert_file='cert.pem', key_file='key.pem') 

vs.

apns = apns(use_sandbox=false, cert_file='cert.pem', key_file='key.pem') 

why care if using apple's sandbox servers or not? there actual reason why should used or not?

you should use sandbox while in staging , production server while have deployed ad hoc or on appstore.
reason keep test environment distinct production. when create application need set different certificates , provisioning profile sign app. 1 debug , 1 distribution. if want add push functionalities must create 2 certificates communicate apns. push test certificates works in sandbox app signed debug certificates, while push production certificates works app signed using distribution cert.
it's quite common keep test environment distinct production, work 3 environments: test, stage, production. 1 pure testing, 1 understand if works expected before going production.
suppose have application on app store uses push notification, you'd publish new version of app enhance or modify in payload of notification. wouldn't nice if test new payload in eviroment different 1 in app store? can take time see if working correctly , maybe check if changes doesn't affect old app.that purpose of sandbox.

did answer question?


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -