简体   繁体   中英

APNS: Does not work on Windows Server

I am trying to setup apple push notification using C#. I am able to test and get everything working on my laptop (dev machine). When I move the published code to the windows server; no errors were thrown and no notification was sent out. I even set my application pool to local server.

Any ideas what I am missing?

You should make certificate for this production machine as well. I believe you may have missed that step and did the same for your laptop.

Consider this link to review your steps one more time.

Thanks

I ended up creating a work around for this. I never got it to work from an asp.net page. What I did is have my asp.net page insert a record in a queue table. I then also created an console app that is call every 5 seconds to look in the queue table and perform a push notification.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM