I am new to IOS APN - Notification generating service , Please help on How we can send APN from C# Windows Service - .Net Framework 4.5 / 4.7?
Tired with Moon-APN , Pushsharp , DotAPN but no result. If any one have sample code with step by step process please share .
Thanks in Advance :-)
@Sumesh you can use the
.NET
open source libraryPushSharp
to push messages to Apple's APNS service.step1: Download
PushSharp
open source project compilation https://github.com/Redth/PushSharp!step2: After successful compilation, APNS push needs to use
Newtonsoft.Json.dll
,PushSharp.Apple.dll
,PushSharp.Core.dll
three assembly library filesstep3: Then the ios client needs to provide the
.p12
certificate file and the encryption password of the certificate filestep4: After preparing these, create a new console program to reference the above library file, copy the certificate to the root directory, change the attributes, and output to the copy directory as always copy
console program code as follow:
I hope I can help you