Closed davidpdrsn closed 9 years ago
Hey @davidpdrsn, it looks like you're trying to do this without first defining the passphrase or certificate.
If you were to create an APN in the environment file itself, for instance, and then invoke it, e.g.
# In your config
config.your_apn = Houston::Client.production
config.apn.certificate = File.read("/path/to/your/pem")
config.apn.passphrase = "yoursecretpassphrase"
# In the rails console for that environment
YourApp::Application.config.your_apn.devices
you would see that it works.
That fixed it! Thanks :smile:
I get the following error when I call
Houston::Client.production.devices
from the rails console.