12

I am starting to look for the Apple Push Notification Service . I have an created using Monotouch framework,

How can I start to let my app use the apple Push Notification Service,

Should I create a Web Service that handle my event and if the insert event is captured for example I send data to the APNS and that is all or should I create something particular. and in the Client Side Should I add some method to handle the notification from APNS??? I am really confused and I don't know from where should I start doing all this. Thanks in Advance for your help

Khaldoun
  • 487
  • 1
  • 5
  • 25

3 Answers3

11

Trying to figure out the client site of APNS with MonoTouch, i found this article very helpful: Push notifications in iOS with MonoTouch

Arne Claassen
  • 14,088
  • 5
  • 67
  • 106
7

The two resources I would start with while beginning to learn about APN are below:

About Local Notifications and Push Notifications

How to build an Apple Push Notification provider server

You may also want to check out Urban Airship. They provide a free APN provider for up to 1 million messages a month.

There is also a project on code.google.com specifically using MonoTouch with APN. apns-sharp I haven't looked at the code but I may help you out.

Larry Hipp
  • 6,205
  • 3
  • 26
  • 31
  • Thanks I understand the server Side provider, it is easy to implement, But I have only few questions How can we get the key from the clientDevice using monotouch, and I think that we have to overide three methods in the client Side:- public override void FailedToRegisterForRemoteNotifications (UIApplication application, NSError error) - public override void RegisteredForRemoteNotifications (UIApplication application, NSData deviceToken) - public override void ReceivedRemoteNotification (UIApplication application, NSDictionary userInfo) – Khaldoun Mar 31 '11 at 20:14
  • 2
    apns-sharp as mentioned by hipplar has a monotouch project that will help you out with registering for remote notifications. See here http://code.google.com/p/apns-sharp/downloads/list – Andrew Young Mar 31 '11 at 20:55
  • What about in app purchase ??? Do you have any idea?? – Khaldoun Apr 01 '11 at 14:08
  • Different question, ask a new question. – tomfanning Apr 01 '11 at 21:36
  • BTW, apns-sharp has moved to github: https://github.com/Redth/APNS-Sharp – Arne Claassen Jul 31 '11 at 17:12
4

Push Sharp might be useful for you https://github.com/Redth/PushSharp/

It's like a new version of APNS-Sharp. You'll have to code your iPhone app (so you can be able to recieve APN) and then use Push Sharp for your APNS provider server.

amarruffo
  • 418
  • 2
  • 5
  • 15