Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check string keys in APNS::Notifications message hash #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Check string keys in APNS::Notifications message hash #46

wants to merge 1 commit into from

Conversation

lserman
Copy link

@lserman lserman commented Oct 27, 2014

When queuing a message through Redis (Sidekiq in my case), hash parameters are serialized and unserialized via JSON dump/load, so any symbol keys are converted to strings. Since APNS::Notification only checks symbol keys, the push will fail unless you symbolize the keys again after the body is given to the Sidekiq worker.

This PR will check for string keys in addition to symbol keys so that this situation can be avoided.

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

Successfully merging this pull request may close these issues.

1 participant