adityamishra90 / apns-python-wrapper

Automatically exported from code.google.com/p/apns-python-wrapper
0 stars 0 forks source link

No support for keeping connection to apns open #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The connection to the apns should be kept open between .notify()s. Instead it 
is closed and reopened each time you want to send a new message.

Apple says in its documentation that repeated opening and closing of 
connections may lead to banning. Instead you should keep the connection open 
until apple closes it when an error occurs.

Without this feature, it does not make it plausible to use the wrapper in 
production. I really would love to though, it is a great tool so far.

Original issue reported on code.google.com by 9th...@gmail.com on 8 Jul 2010 at 1:42

GoogleCodeExporter commented 8 years ago
It would be a new feature of 0.7 version of APNSWrapper.

Original comment by klymys...@gmail.com on 8 Jul 2010 at 2:50

GoogleCodeExporter commented 8 years ago
That would be very nice, thanks klymyshyn.

Original comment by 9th...@gmail.com on 8 Jul 2010 at 3:09

GoogleCodeExporter commented 8 years ago
Any news on this?

Original comment by litchfie...@gmail.com on 24 Feb 2011 at 6:26

GoogleCodeExporter commented 8 years ago
Hey guys, check out latest source code updates. But you have to handle 
connections error by yourself - notification.send() may generate 
"APNSConnectionError" and maybe other exceptions not related to SSL module (I 
know only about SSLError). So, if you need new functionality right now - go 
ahead. I'll build new version after additional testing.

Original comment by klymys...@gmail.com on 24 Feb 2011 at 10:13

GoogleCodeExporter commented 8 years ago
Any news on this?

Original comment by mik...@bolle.se on 8 Apr 2012 at 11:55

GoogleCodeExporter commented 8 years ago
Honestly, I've not worked on it because of lack of device and iphone developer 
account. Here is early alpha of the code https://github.com/joymax/python-apns

I know that this wrapper worked on production project. But I can't confirm that 
it working now as expected.

BTW, I'm still waiting for donation - any iphone device and iphone developer 
account :)

Original comment by klymys...@gmail.com on 8 Apr 2012 at 12:12

GoogleCodeExporter commented 8 years ago
can anybody tell me ..if APNSwrapper  solves it now ? is there a way to keep 
the connection persistent ? 

Original comment by nut...@gmail.com on 31 Jul 2014 at 2:58