iOS development differences between Beta and official release versions of remote push

Source: Internet
Author: User

Starting with iOS, you'll occasionally hear about MVC design patterns used in development. However, until now, there is no formal contact and use of the real MVC, the feeling of this year, the same as the white, MVC is in the study, after the understanding will come to share.

On the push, the local relatively easy, online information will be many.

About the remote push, it is a little bit of trouble, the production of the certificate is recommended to read the original English tutorial http://www.raywenderlich.com/32960/ Apple-push-notification-services-in-ios-6-tutorial-part-1

This should be the most perfect in the push data, from the certificate production to their own simulation background send remote push to speak very detailed.

The production of the certificate of the total Aps_development.cer and export the corresponding P12 file of the production process I will not repeat (these kinds of certificates seem to be done to the background, the front-end is not used).

Our project has been going well during the test, but I have to make sure that I can use it on the go, because the test certificate and the officially issued certificate and some other things are not the same. At the beginning of the test, I used the Devicetocken on the previous test certificate and replaced the different p12 files with the Apple server address. But the result is tragic, pad can't receive push information.

Later found the related problems, probably is the test certificate Devicetocken and release certificate obtained devicetocken different, want to different, and then search the internet for half a day (English level No, official documents not found) eventually let me find the solution

/* When developing the general we are using Xcode directly into the device this time development certificate can be pushed successfully but the production certificate is not pushed but Apple gives us the ad hoc test method it uses a publishing certificate if you Do not know the ad hoc mode can be searched very simple here there is a key place development and production get the token of the different use of ad hoc way to get to the device is production Token so you are using ad hoc mode to test the use of production token if you use ad hoc mode test no problem This release is no problem.

*/

Above is someone else's words, I copied down, through the ad hoc way to get the Devicetocken is not the same, the push sent back to the normal reception, really thank the Daniel, but also learned a trick, although not their own solution, but share to everyone can still solve the problem completely.

Finally, in addition to Baidu, stack overflow is a good place, there are problems can go to try to find, in addition, do not neglect the official Apple documents, English good students can go to the Apple online video teaching places to visit Https://developer.apple.com/videos.

iOS development differences between Beta and official release versions of remote push

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.