Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Update core.rb #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update core.rb #22

wants to merge 2 commits into from

Conversation

theosp
Copy link

@theosp theosp commented Aug 27, 2013

Isn't this loop redundant and make the bulk of notifications to be sent more than once?!

Isn't this loop redundant and make the bulk of notifications to be sent more than once?!
@wlipa
Copy link

wlipa commented Aug 28, 2013

We just experienced some serious multi-notification spam via the new library, so I think it may well be...

@wlipa
Copy link

wlipa commented Aug 28, 2013

Originally from the @toto checkin I think.

@toto
Copy link
Contributor

toto commented Aug 28, 2013

@wlipa indeed, that is a bug I introduced when updating the lib. Will have a look why the tests did not catch this, they should have.

@toto
Copy link
Contributor

toto commented Aug 28, 2013

I verified that this is indeed the cause of the multi-notification problem. @theosp can you please bump the bundle version as well (toto@f134e90), so @jpoz can quickly merge this in.

Building a regression test for this needs a bit more time, but it should be fixed ASAP.

@wlipa
Copy link

wlipa commented Aug 29, 2013

The library is very dangerous to use as is. 1.1 should be pulled unless a fix is forthcoming.

@toto
Copy link
Contributor

toto commented Aug 30, 2013

True, unfortunately only @jpoz can do that. As he does not seem to notice this thread, I will try him via mail.

@theosp
Copy link
Author

theosp commented Aug 30, 2013

@toto , @wlipa , @toto In my opinion 1.0 should be set as the production version of the gem for at least a couple of weeks. 1.1 needs more testing even with this fix.

@wlipa
Copy link

wlipa commented Sep 10, 2013

I wonder if we can get the gem pulled some other way if @jpoz is out of action. It really shouldn't be distributed in the current state as it very easily leads to an absolute nightmare of multiple alerts and very annoyed users.

@jpoz
Copy link
Owner

jpoz commented Sep 11, 2013

bad time for me to take a vacation i guess. I'll get this merged in. This maybe a a good time to have a collaborator on this gem. Any takers? @toto @theosp

@jpoz
Copy link
Owner

jpoz commented Sep 11, 2013

yanked 1.1.0

@toto
Copy link
Contributor

toto commented Sep 12, 2013

Thanks for merging. would be glad to help.

I will make sure to build a regression test for this problem. Currently only the single notification is tested, not what get's written to the socket in the end. That is how this slipped through.

@mkonecny
Copy link

mkonecny commented Oct 4, 2014

Can this be pushed out, or is there still work to do?

@toto
Copy link
Contributor

toto commented Oct 5, 2014

I have cleaned up a few things and added patches. Take a look at https://github.com/toto/APNS. I will do a new PR, so @jpoz can take a look. I bumped the version to 1.1.1 though, to ensure that everything get's updated correctly after the 1.1.0 debacle.

@toto
Copy link
Contributor

toto commented Oct 5, 2014

Also I should note that I use my 1.1.1 code in production sending out push to >100k devices - including content_availiblepushes. So the format implementation is robust.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants