Giter Site home page Giter Site logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024

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

  • 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.