- send_notifications method in PRX's did not accept an array of notifications as paramter. It sends all unsent notifications.
APN::App. Put cert in database and allow you to send to multiple iOS apps with 1 rails app
APN::Group. Allow you to send group notifications. (But it still send one by one to Apple APN server)
- If it complains about some migrations have a same name, rename the old migrations and run again, delete the duplicated and rename back.
- README says that maigration 002
create_apn_notificationswas modified by hand and may cause a problem. See Upgrade Notes if needed.
Create first APN::App and move cert into database
Copy the content of
apple_push_notification_production and save into APN::app#apn_dev_cert and APN::app#apn_prod_cert. See this post. (but you need to reslove the massive-assignment problem before running it on rails 3.2)
Modifiy APN::Notification.send_notifications and let it accept an array of notificaitons
Because that the natescherer:apn_on_rails folk accepts an array of notificaitons to send. But the PRX one are not. So I added it by hand.
NameError: uninitialized constant APN::App::RAILS_ENV
Add following line in
Errno::ENOENT: No such file or directory - /config/apple_push_notification_development.pem
It will generate configatron files. Edit