How to make APN server support?

I read in some stackOverflow article that the host will need to open port 2195 and support push notifications under apns.how in order for me to make my server to support apns.

what does this line mean in the Push Notification manual

In order to establish a trusted vendor ID, we have to present this certificate to the APN during a peer-to-peer connection.

Do I need to connect to APns through my native app? someone please explain this

+2


source to share


5 answers


Pretty much any server that has no limit on what sockets you can open is ready to be an APNS provider. In your project code, you can just open a socket for Apple servers (or use a library).



I understand that Google App Engine and basically any traditional shared web hosting will block any port other than 80, so you cannot use them. However, you can take a look at Urban Airship , which provides a RESTful API that is mostly used from any service. It can get costly though.

+3


source


In short, you need to establish an SSL connection and then send the payload in a predefined binary format.

alt text http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Art/aps_provider_binary.jpg



See this guide for details .

0


source


I am using appengine, so I solved it by renting a super cheap server at hetzner.de. It basically serves as a proxy for my appengine application and uses this library: https://github.com/notnoop/java-apns

this library has one way to send a message using a certificate.

0


source


Google just opened up the ability to do Socket things in AppEngine, so I created a sample project that you can use to send push notifications using GCM and APNS in python. Feel free to use whichever one you like.

I've also included a sample iOS project and an Android project that go well with the application engine solution.

https://github.com/GarettRogers/appengine-apns-gcm

** Full disclosure ** this is my project and I am in no way trying to promote it because it is mine ... it is just the only project available that solves your problem at the moment. If you find anything that does a better job, please leave a comment.

0


source


You can check java-apns-gae

.

It is an open source Java APNS library that has been specifically designed to run (and use) on Google App Engine.

https://github.com/ZsoltSafrany/java-apns-gae

0


source







All Articles