Description
I find it very confusing on this line...
app = APN::App.create(:apn_dev_cert => "PASTE YOUR DEV CERT HERE", :apn_prod_cert => "PASTE YOUR PROD CERT HERE")
The first thought I had when I saw "PASTE YOUR DEV CERT HERE" is to "Put the .cer file path in here". BUT! it is not! it should be the "content" of the .pem file. This is totally misleading and will cause newbies, like me, a lot of time to figure this out. I suggest you to change it to "PUT CONTENT OF .PEM FILE HERE - e.g. File.read('config/apn.pem')", so it would be much clearer.
And also you should tell to initialize RAILS_ROOT, APN::App::RAILS_ENV='development' in "config/configatron/development.rb and production.rb" as well. There will be a lot of iOS devs that don't know any ruby on rails come and pick this up and don't know how to do this.
And cannot use "~" sign for specifying directories, have to type in full path.
Regards