Giter Site home page Giter Site logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
This is probably not the answer you want... 

"Don't maintain a 24x7 connection to the APNServers... maintaining connections 
is bad and will probably get 
your key revoked."

Say there are 100 connections available to the APNServers, and there were 100 
iPhone app servers connected 
to the APNS 24x7, then NO ONE else would be able to send messages. 

Or do you think Apple should provide 1 connection for every app ever built?

The retry code may have issues, but what you are doing is still wrong.

Bill

Original comment by [email protected] on 20 May 2010 at 8:24

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
Thank you for reply, but where you found what "maintaining connections is bad 
and 
will probably get your key revoked"? Apple documentation says: 

"The provider connects with APNs through a persistent and secure channel while 
monitoring incoming data intended for their client applications. When new data 
for 
an application arrives, the provider prepares and sends a notification through 
the 
channel to APNs, which pushes the notification to the target device." 
and 
"You should also retain connections with APNs across multiple notifications. 
APNs 
may consider connections that are rapidly and repeatedly established and torn 
down 
as a denial-of-service attack. Upon error, APNs closes the connection on which 
the 
error occurred.". 


Original comment by [email protected] on 21 May 2010 at 8:12

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
Yes, 'You should also retain connections with APNs across multiple 
notifications.' But that doesn't mean hold 
open the connection unused for hours at a time.

Original comment by [email protected] on 21 May 2010 at 3:28

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024

Original comment by [email protected] on 16 Oct 2010 at 9:37

  • Changed state: Invalid

from javapns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.