Comments (4)
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.
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.
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.
Original comment by [email protected]
on 16 Oct 2010 at 9:37
- Changed state: Invalid
from javapns.
Related Issues (20)
- thread terminated after reached max msg send HOT 3
- Exception reporting not working for multiple payloads
- Responses not read? HOT 1
- Javapns Communication exception:Connection refused to ConnectionToAppleServer
- support for title-loc-key (ios 8.2)
- Unable to connect APNS - CommunicationException - java.net.ConnectionException : Communication Timed Out HOT 2
- Duplicate notifications being sent out at high rate
- Add content-available to PushNotificationPayload
- Do you support VoIP push notifications?
- javaapns does not supports log4j 2
- Exception java.net.SocketException
- Javapns Notifications SSL Exceptions and Closed Sockets HOT 2
- thead lake
- Version of LGPL used is not documented
- 256 byte max size is outdated for iOS7 HOT 1
- Compatibility with Java 8 HOT 1
- which is latest version for JavaPNS jar?
- Remote host closed connection during handshake
- ProxyManager not have the setProxyBasicAuthorization method
- New Category tag for Actionable Notification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javapns.