This repository was archived by the owner on Mar 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Configuration
Ian Leitch edited this page Aug 28, 2013
·
10 revisions
-
-f--foregroundRun in the foreground. -
-P--db-poll NFrequency in seconds to check for new notifications. -
-F--feedback-poll NFrequency in seconds to check for feedback. -
-e--no-error-checksDisable APNs error checking after notification delivery. -
-p--pid-file PATHPath to write PID file. Relative to Rails root unless absolute. -
-b--batch-size NStorage backend notification batch size. -
-B--[no-]batch-storage-updatesPerform 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