PushSharp is used to push messages for IOS app publishing, and pushsharpios

Source: Internet
Author: User

PushSharp is used to push messages for IOS app publishing, and pushsharpios

In progress. NET uses the PushSharp open-source class library to push messages to apps on IOS devices. In the development process, it uses a test version of the App, the p12 certificate is tested using ApnsConfiguration. apnsServerEnvironment. in Sandbox mode, after the project is released, the certificate of the released version is used for pushing, finally, we found that ApnsConfiguration is required for pushing projects after PushSharp is used. apnsServerEnvironment. production mode. To make the push successful.

The Production parameter should be used when instantiating the ApnsConfiguration object, instead of the Sandbox mode.

The Code is as follows:

ApnsConfiguration apnsConfig = new ApnsConfiguration (ApnsConfiguration. ApnsServerEnvironment. Production, "certificate. p12", "certificate password"); // Sandbox

After modifying the parameters, you must use the certificate and password of the published version 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.

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.