Кажется, все используют PushSharp для отправки push-уведомлений на устройства iOS с C#. Но у этой библиотеки есть очередь, которую она использует вместо отправки уведомления напрямую, что означает, что вам нужна служба Windows или что-то еще для ее правильного размещения (согласно ее собственной документации), что для меня излишне. У меня есть входящий веб-запрос к моей веб-службе ASP.NET, и в рамках его обработки я хочу немедленно отправить push-уведомление. Просто как тот.
Может ли кто-нибудь сказать мне, как использовать PushSharp для немедленной отправки (в обход механизма очереди) или как правильно отправить push-уведомление самостоятельно? У меня уже есть код, формирующий сообщение JSON, но я не знаю, как применить файл .p12 к запросу. Я не могу найти документацию Apple о том, как это сделать.