{"action":"opened","issue":{"url":"https://api.github.com/repos/arthurnn/apn_sender/issues/92","labels_url":"https://api.github.com/repos/arthurnn/apn_sender/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/arthurnn/apn_sender/issues/92/comments","events_url":"https://api.github.com/repos/arthurnn/apn_sender/issues/92/events","html_url":"https://github.com/arthurnn/apn_sender/issues/92","id":107986952,"number":92,"title":"Error: undefined method 'notify' for :sidekiq:Symbol","user":{"login":"emisvx","id":5647031,"avatar_url":"https://avatars.githubusercontent.com/u/5647031?v=3","gravatar_id":"","url":"https://api.github.com/users/emisvx","html_url":"https://github.com/emisvx","followers_url":"https://api.github.com/users/emisvx/followers","following_url":"https://api.github.com/users/emisvx/following{/other_user}","gists_url":"https://api.github.com/users/emisvx/gists{/gist_id}","starred_url":"https://api.github.com/users/emisvx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emisvx/subscriptions","organizations_url":"https://api.github.com/users/emisvx/orgs","repos_url":"https://api.github.com/users/emisvx/repos","events_url":"https://api.github.com/users/emisvx/events{/privacy}","received_events_url":"https://api.github.com/users/emisvx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-23T19:13:15Z","updated_at":"2015-09-23T19:13:15Z","closed_at":null,"body":"Hello guys, i'm having a bit of trouble in sending those push notifications. When \"notify_async(ids,opts)\" is called i get the following error:\r\n\r\nNoMethodError (undefined method `notify' for :sidekiq:Symbol):\r\n\r\nHere's the screenshot of the code line\r\n\r\n    def self.send_apple_push_notification(projeto, ids, message)\r\n     projeto.configure_apn(projeto)\r\n     options = { alert: message, badge: \"+1\", sound: true, other_information: ''}\r\n     ids.each do |id|\r\n       APN.notify_async(id, options)\r\n     end\r\n    end\r\n\r\nI've chosen sidekiq as my backend just like the README suggests\r\n\r\n    APN.backend = :sidekiq # use sidekiq backend\r\n\r\nHere's the rest of the configuration. This was done with the intent to make the project work with multiple certificates.\r\n\r\n    def configure_apn(projeto)\r\n      path = nil\r\n      if projeto.desenvolvimento\r\n        path = projeto.apn_development.path\r\n      else\r\n        path = projeto.apn_production.path\r\n      end\r\n\r\n      unless path.nil?\r\n        last_slash = path.rindex(\"/\")\r\n        folder = path[0..last_slash]\r\n        file = path[last_slash+1..path.length]\r\n\r\n        APN.root = folder # root to certificates folder\r\n        APN.certificate_name = file # certificate filename\r\n        if projeto.desenvolvimento\r\n          APN.host = projeto.apn_host\r\n          APN.password = projeto.apn_password_development\r\n        else\r\n          APN.password = projeto.apn_password_production\r\n        end\r\n        APN.pool_size = 1 # number of connections on the pool\r\n        APN.pool_timeout = 5 # timeout in seconds for connection pool\r\n        APN.logger = Logger.new(File.join(Rails.root, 'log', 'apn_sender.log'))\r\n        APN.truncate_alert = true \r\n        APN.backend = :sidekiq # use sidekiq backend\r\n      end\r\n    end"}}