-
Notifications
You must be signed in to change notification settings - Fork 156
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
Fix confusing README.textile #50
Comments
+1 really |
I got into this trap too. I thought it was the file path the apn_dev_cert was talking about, thinking it probably the file's path it's looking for =( |
My other question is how do you get the token for a particular user, to send the notifications to? |
Are you talking about the Rails side or iOS? For Rails, I have the same issue. Since apn_on_rails generates its own classes/associations inside the gem, if you do not wish to mod the gem, you can do a
for your user model. |
+1 |
I can't seem to resolve this issue at all |
I find it very confusing on this line...
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
The text was updated successfully, but these errors were encountered: