Push for iOS and push for iOS
Remember the pitfalls of pushing.
Push. You must obtain the SSL certificate through the iOS Developer Program Portal. Each certificate is limited to one program and identified by the bundle ID of the program. Certificates can be used in two ways: for sandbox (for development and testing) and for publishing products. I made some mistakes here.
Sandbox push
This is the push in the test environment, and requires: 1 Development Certificate 2ssl certificate 3 validation file. When applying for an ssl Certificate, pay attention to the bundle ID and do not contain the * font size. These three applications can be pushed. Because I use a push, I need to export the applied ssl Certificate to the p12 file in the key string during the push, and then upload it to a push, push will automatically detect whether to develop or produce a certificate. Next, we can push data.
2. Production Environment push
Required: 1 production certificate app store and ad hoc 2 production environment ssl certificate 3 validation file. The steps are similar to those of sandbox. Remember to configure it in codesigning. Someone may ask what to do if you want to test the push in the production environment! As long as you apply for a production certificate app store and ad hoc and pack it into your mobile phone, you can perform a formal environment test.