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

Sidekiq Password not set using development mode #65

Open
AlanHassen opened this issue Jan 31, 2014 · 3 comments
Open

Sidekiq Password not set using development mode #65

AlanHassen opened this issue Jan 31, 2014 · 3 comments

Comments

@AlanHassen
Copy link

Just trying to use apn_sender with sidekiq in development mode:

APN.host = 'gateway.sandbox.push.apple.com'
APN.password = 'justapw'
APN.pool_size = 1 # number of connections on the pool
APN.pool_timeout = 5 # timeout in seconds for connection pool
device_token = "123"
APN.backend = :sidekiq
APN.notify_async(device_token, :alert => 'PushPlugin works!!', :badge => 1, :sound => 'beep.wav')

And sidekiq askes me for a password?

2014-01-31T17:48:52Z 12372 TID-ko1ws APN::Jobs::SidekiqNotificationJob JID-11111 INFO: start
Enter PEM pass phrase:
@arthurnn
Copy link
Owner

arthurnn commented Feb 1, 2014

does your certificate file requires a password?

@AlanHassen
Copy link
Author

oh i did a kind of stupid mistake... i tried to use APN.password in a method, not as an initializer. Just wondering, apn needs about a second to send the message with a worker, android 0,2 seconds. Is that normal for APN?

@AlanHassen AlanHassen reopened this Feb 3, 2014
@arthurnn
Copy link
Owner

arthurnn commented Feb 3, 2014

@AlanHassen Not sure... We were sending hundreds APN notifications per second before, but I am not sure about the delay on apple side...

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

No branches or pull requests

2 participants