"Message push using Pushsharp for iOS publishing applications"

Source: Internet
Author: User

In doing. NET to the iOS device app for a message push, using the Pushsharp Open source class library for message push, and in the development process, using a beta version of the app, The P12 certificate used is the ApnsConfiguration.ApnsServerEnvironment.Sandbox mode, and after the project is released, now use the release of the certificate to push, found that can not push success, finally found in the use of Pushsharp to send The ApnsConfiguration.ApnsServerEnvironment.Production mode is used for the push of the post-cloth item. In order to push successfully.

You should use the production parameter instead of sandbox sandbox mode when instantiating the Apnsconfiguration object.

The code is as follows:

Apnsconfiguration apnsconfig=new apnsconfiguration (ApnsConfiguration.ApnsServerEnvironment.Production, "certificate. P12", " Certificate Password ");//sandbox sand Box
After you modify the parameters, you use the published version of the certificate and password to complete the push task.

Related Article

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.

Tags Index: