Last post Mar 03, 2013 05:40 AM by mogs03
Oct 05, 2011 03:46 AM|Ayushi|LINK
i have to push a notification from my asp.net application to iphone.Help me out.
Oct 05, 2011 10:48 AM|Anindita.Basak|LINK
iPhone 3.0 and higher supports push notification via Apple's server, download SDK: http://developer.apple.com/technologies/ios5/
I'd suggest you do use that technology, as that allows your app to receive messages while not running and does not result in using more batrery power than your iphone already does.
Further, Web services does not support push-technology out of the box. A way to do push over web services is what Microsoft exchange uses: to make a server call, and then to have the server block (i.e. not answer back) until the server has an update for
the client. So:
In this model, the client needs to guard the connection between the server and the client. If for any reason dropped, the client need to start a new connection. A reason for the connection being dropped, would be that the firewall in the middle times out
or may be even IIS times out.
Oct 12, 2011 08:38 AM|Ayushi|LINK
i used code of this library
but it give me error, help me what i did wrong.
System.Security.Cryptography.CryptographicException: The parameter is incorrect.
[CryptographicException: The parameter is incorrect.] System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) +33 System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(Byte rawData, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx) +0 System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(Byte rawData, Object password, X509KeyStorageFlags keyStorageFlags) +203 System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte rawData, String password, X509KeyStorageFlags keyStorageFlags) +132 JdSoft.Apple.Apns.Notifications.NotificationConnection.start(String p12File, String p12FilePassword) in C:\Documents and Settings\Sunita\My Documents\Google Talk Received Files\apns-sharp\JdSoft.Apple.Apns.Notifications\NotificationConnection.cs:344 JdSoft.Apple.Apns.Notifications.NotificationConnection..ctor(String host, Int32 port, String p12File, String p12FilePassword) in C:\Documents and Settings\Sunita\My Documents\Google Talk Received Files\apns-sharp\JdSoft.Apple.Apns.Notifications\NotificationConnection.cs:160 JdSoft.Apple.Apns.Notifications.NotificationService.set_Connections(Int32 value) in C:\Documents and Settings\Sunita\My Documents\Google Talk Received Files\apns-sharp\JdSoft.Apple.Apns.Notifications\NotificationService.cs:294 JdSoft.Apple.Apns.Notifications.NotificationService..ctor(Boolean sandbox, String p12File, String p12FilePassword, Int32 connections) in C:\Documents and Settings\Sunita\My Documents\Google Talk Received Files\apns-sharp\JdSoft.Apple.Apns.Notifications\NotificationService.cs:191 Testiphone.Page_Load(Object sender, EventArgs e) in d:\sunitaDesktop\Projects\DrinkingSite\DrinkPass\Testiphone.aspx.cs:50 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Oct 17, 2011 12:52 AM|Anindita.Basak|LINK
Are you using non-ascii character in your string parameter from which are you loading X.509 certificate from blob?
Check out the certificate hash & public key token .
Nov 11, 2011 12:23 AM|Ayushi|LINK
To Push notifications on Iphone from asp.net Copy code from
Download https://github.com/Redth/APNS-Sharp/downloads APNS Source Zip file make dll of JdSoft.Apple.Apns.Notifications & add it to ur App.
Iphone app returns u a Device Token add it to the code.
Insatll .P12 File on server by double cliking on it & also on ur local system.
Read thoroughly these two link if require full knowledge to push notifications in asp.net
Dec 14, 2011 02:50 AM|uncarlo|LINK
Hi, I'm having the same "The parameter is incorrect exception". Could you please elaborate a bit more in the solution?
Mar 03, 2013 05:40 AM|mogs03|LINK
I would like to share this push message for iPhone apps tutorial to learn how push notification really works. I am sure your members here will find it very useful. https://pushwizard.com/howpushworks