Giter Site home page Giter Site logo

Comments (17)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
I'm confused.

You have 1 java app, that sends notification for several iPhone apps? (each of 
which has it's own certificate etc...)

If this is the case, then the only thing I can see is reset the javapns 
instance when you want to switch certificates.

What do you mean by 'maintain connections' ? In theory you open a connection, 
send your notices, close your 
connection, repeat...

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

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Take a scenario i have two list. One list is associated with one application. 
Second 
list associated with another application. I will run two threads at the same 
time 
once i open the connection for the first list, i want to keep open the 
connection 
till i complete all the messages in the first list.(because apple is not 
recommending to open/close connections very often). when i process the first 
list, 
another thread start processing the second list which will reset the connection 
with 
second application since the pushnotification manager is a singleton class.

How do i proceed with javapns in such requirement? 

Original comment by [email protected] on 31 May 2010 at 5:34

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
basically javapns has to provide support for multiple applications.

Original comment by [email protected] on 3 Jun 2010 at 7:34

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Would changing the library from a singleton to a instance be better?

Or do you have another suggestion?

I can work on this, but it will take some time. Any assistance would be greatly 
appreciated.

Original comment by [email protected] on 3 Jun 2010 at 3:51

  • Changed state: Accepted

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
[deleted comment]

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
[deleted comment]

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Hi i have the same thing to do and have an question, can i open a connection 
and send
several apns, for this app, close connection and reopen a new to send several 
apns
for the next app.
shorter do i have to create and close conection for any single apn
or only for each aplication?

thx Felix

Original comment by [email protected] on 4 Jun 2010 at 11:09

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Thanks, I will try to provide some inputs from my side. 

Original comment by [email protected] on 7 Jun 2010 at 9:41

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Yes Felix, You can do that untill you have one thread to process all the 
messages 
(process the messages one by one). Only thing is you need to have the list 
ordered 
by the application and process it sequentially. It will be slower when you have 
want 
to process it for millions.

Original comment by [email protected] on 7 Jun 2010 at 9:42

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
thx Paulraj for the fast answer,
I have one more question, support the javapns threading, i dont see somthing 
for it
only a SSLsocket, how maybe can do it. 
I have to send masses of apns to several applications, Devices an whane do it 
with
more then 1 connection. But i dont finde a way to open more then 1 connection.

Original comment by [email protected] on 7 Jun 2010 at 10:20

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
> Would changing the library from a singleton to a instance be better?
....
> Any assistance would be greatly appreciated.

Yes i whane help you i need it very fast to open more than 1 connection if you 
tell
me what i can do to help you would be fine.

mfg Felix

Original comment by [email protected] on 7 Jun 2010 at 11:14

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Ok i work on it 
im nearly done to make instance or singletons of the class
and make some minor changes that optimice some things.
and adding comments to them.
i will send it to you if im done.

Original comment by [email protected] on 9 Jun 2010 at 11:26

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
How is this going?

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

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
I'm also interested in this feature.  I have multiple apps driven by a single 
server cluster.  It would be really great to have multiple application support. 


Original comment by [email protected] on 6 Mar 2011 at 9:12

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Also interested to know when multiple applications will be supported. thx Chris

Original comment by [email protected] on 2 Aug 2011 at 2:32

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Please see version 2.0 (branch javapns2), which was completely re-architected 
to support multiple applications, persistable devices, etc.  

I believe we can close this issue as fixed in version 2.0...

Original comment by [email protected] on 31 Aug 2011 at 6:36

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
Design issue addressed in javapns 2.0.   Closing.

Original comment by [email protected] on 7 Sep 2011 at 1:01

  • Changed state: Fixed

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.