IOS message push (push)---personal summary

Source: Internet
Author: User

Since the push was started last week, it took almost one weeks to get the whole thing done today, so now it's time to record this "wonderful" journey. Our company uses the message push is used by the third party-a push, here to say, a push of the technical staff is very enthusiastic, has been helping me to troubleshoot problems, finally solved the problem, thank you!

Steps and Troubleshooting:

1. Refer to the development documentation, integrated SDK, not described here. (Note that push-to-iOS pushes can only be used for a pass-through)

2. Create the certificate. Apple's push certificate is divided into development certificates (for testing) and production certificates (for online use). It is important to note that the certificate's push service must be opened before the certificate is created.

And you have to create a development certificate before you create a production certificate, otherwise it will not work. Once the certificate has been created, don't forget to regenerate the description file and check to see if the profile has been pushed.

3. Test. There are two ways to test: a push platform and the interface provided by the company backend. Push platform test:

If you have received a push message, then good, you are close to success. If not, first you have to check if the app is allowed to push. (Reminder style should choose banner)

Basically allow notifications to receive the push. (Apple is a system comes with the sound of the alert, if not, you have to check your voice settings, and see if you turn on do not disturb or something. In fact, I am so much, because I have the middle of the strokes, hey ...)

Company background testing, this has to find backstage. If the platform is pushed successfully, but the background interface test push is unsuccessful, then ask the background, whether the integration of the iOS transmission template. (If you can receive the online message, the offline message is not received, 99.9% is because of the background.) I was in the development of this situation, the background for Android and iOS method is generic, only one integration, the results Android can normally receive push, iOS can not

4. Release. Before you publish, you need to change the development certificate to a production certificate on the platform. Then you need to change the description file in Xcode to the one you created before, with the push feature turned on. Then pack it up online.

Note that if the test is pushed to normal, the success of the launch after the discovery of the push can not, then you have to check the release of the version of Devicetoken whether or not, if not, then nine in all likelihood is your certificate is not created, or packaged when the description file is not configured.

Add: After online app, how to view the console print message,--> connect your phone to your computer first, open Xcode, status bar window->devices-> Select your phone, you can view the log information.

IOS message push (push)---personal summary

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.