Skip to content
Browse files

Updated section in README about delivering notifications.

  • Loading branch information...
1 parent 7f2d342 commit d5299bba5cd3612803cf10ee99efb97e4b89c4f3 @markbates markbates committed Jul 27, 2009
Showing with 16 additions and 6 deletions.
  1. +7 −2 README
  2. +7 −2 README.textile
  3. +2 −2 apn_on_rails.gemspec
View
9 README
@@ -94,10 +94,15 @@ That's it, now you're ready to start creating notifications.
>> notification.sound = true
>> notification.alert = "foobar"
>> notification.save
- >> APN::Notification.send_notifications
-You can also run the following Rake task to send your notifications:
+You can use the following Rake task to deliver your notifications:
$ rake apn:notifications:deliver
+The Rake task will find any unsent notifications in the database. If there aren't any notifications
+it will simply do nothing. If there are notifications waiting to be delivered it will open a single connection
+to Apple and push all the notifications through that one connection. Apple does not like people opening/closing
+connections constantly, so it's pretty important that you are careful about batching up your notifications so
+Apple doesn't shut you down.
+
Released under the MIT license.
View
9 README.textile
@@ -105,12 +105,17 @@ h2. Example:
>> notification.sound = true
>> notification.alert = "foobar"
>> notification.save
- >> APN::Notification.send_notifications
</code></pre>
-You can also run the following Rake task to send your notifications:
+You can use the following Rake task to deliver your notifications:
<pre><code>
$ rake apn:notifications:deliver
</code></pre>
+The Rake task will find any unsent notifications in the database. If there aren't any notifications
+it will simply do nothing. If there are notifications waiting to be delivered it will open a single connection
+to Apple and push all the notifications through that one connection. Apple does not like people opening/closing
+connections constantly, so it's pretty important that you are careful about batching up your notifications so
+Apple doesn't shut you down.
+
Released under the MIT license.
View
4 apn_on_rails.gemspec
@@ -2,11 +2,11 @@
Gem::Specification.new do |s|
s.name = %q{apn_on_rails}
- s.version = "0.2.0.20090726224957"
+ s.version = "0.2.0.20090727132135"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["markbates"]
- s.date = %q{2009-07-26}
+ s.date = %q{2009-07-27}
s.description = %q{apn_on_rails was developed by: markbates}
s.email = %q{mark@markbates.com}
s.extra_rdoc_files = ["README", "LICENSE"]

0 comments on commit d5299bb

Please sign in to comment.
Something went wrong with that request. Please try again.