Comments (5)
According to your log:
10:12:35,968 DEBUG PushNotificationManager:? - Notification sent
How is your iPhone app configured?
Does the iPhone display the message when your app is not running?
- if so, then be sure to register your app with the apns service on the phone (sorry I don't know the details)
If the iPhone doesn't get the notice, please verify that your app has enabled
apns services via the apple dev portal.
Original comment by [email protected]
on 5 Oct 2010 at 3:21
from javapns.
Thanks for your replay and my apologies for what i'had sent to you because the
problem was that my iphone was connected to another wifi lan that not have
enabled port 5223.
But another question if is possible, how do you reconnect if the connection
goes down when sending a payload ? can i put all my code in a while(true) end
retry with "initializeConnection" as long as is ok ?
Thanks for all your attention
Original comment by [email protected]
on 11 Oct 2010 at 8:50
from javapns.
Thanks for your replay and my apologies for what i'had sent to you because the
problem was that my iphone was connected to another wifi lan that not have
enabled port 5223.
But another question if is possible, how do you reconnect if the connection
goes down when sending a payload ? can i put all my code in a while(true) end
retry with "initializeConnection" as long as is ok ?
Thanks for all your attention
Original comment by [email protected]
on 11 Oct 2010 at 8:50
from javapns.
Interesting. I was under the assumption that apns always used the cell
connection. Any information you provide about the port 5223 block would be
interesting to me. (In my environment, our firewall blocks 5223, but I can
still receive push notifications, but we have good cell service.)
As per other peoples experience, you should not maintain a connection with the
apn service over a long period of time.
The docs indicate 'You should also retain connections with APNs across multiple
notifications' and 'you should batch multiple notifications in a single
transmission over the interface'. To me this indicates they want users to batch
notifications and send them all at once (like on a cron), and not as the
notifications are created... But this does not specifically say that servers
should maintain a connection over a period of time.
So in answer to the question, if you get connected... then you should send the
notifications. If a payload fails, the javapns lib should throw an exception
which you can catch, so the while seems redundant.
References:
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Concept
ual/RemoteNotificationsPG/CommunicatingWIthAPS/CommunicatingWIthAPS.html
Original comment by [email protected]
on 11 Oct 2010 at 5:04
from javapns.
Original comment by [email protected]
on 16 Oct 2010 at 9:34
- 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.