This repository has been archived by the owner on Mar 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Configuration
Ian Leitch edited this page Aug 28, 2013
·
10 revisions
-
-f
--foreground
Run in the foreground. -
-P
--db-poll N
Frequency in seconds to check for new notifications. -
-F
--feedback-poll N
Frequency in seconds to check for feedback. -
-e
--no-error-checks
Disable APNs error checking after notification delivery. -
-p
--pid-file PATH
Path to write PID file. Relative to Rails root unless absolute. -
-b
--batch-size N
Storage backend notification batch size. -
-B
--[no-]batch-storage-updates
Perform storage updates in batches.
If you ran rails g rapns
you should have a file in config/initializer/rapns.rb
which contains the following.
Rapns.configure do |config|
# Run in the foreground?
config.foreground = false
# Frequency in seconds to check for new notifications.
config.push_poll = 2
# Frequency in seconds to check for feedback
config.feedback_poll = 60
# Disable APNs error checking after notification delivery.
config.check_for_errors = true
# ActiveRecord notifications batch size.
config.batch_size = 5000
# Perform updates to the storage backend in batches to reduce IO.
config.batch_storage_updates = true
# Path to write PID file. Relative to Rails root unless absolute.
config.pid_file = '/path/to/rapns.pid'
# Define a custom logger.
config.logger = MyLogger.new
end