markbates-apn_on_rails 0.2.0.20090726224957 → 0.2.0.20090727132135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +7 -2
- metadata +2 -2
data/README
CHANGED
@@ -94,10 +94,15 @@ That's it, now you're ready to start creating notifications.
|
|
94
94
|
>> notification.sound = true
|
95
95
|
>> notification.alert = "foobar"
|
96
96
|
>> notification.save
|
97
|
-
>> APN::Notification.send_notifications
|
98
97
|
|
99
|
-
You can
|
98
|
+
You can use the following Rake task to deliver your notifications:
|
100
99
|
|
101
100
|
$ rake apn:notifications:deliver
|
102
101
|
|
102
|
+
The Rake task will find any unsent notifications in the database. If there aren't any notifications
|
103
|
+
it will simply do nothing. If there are notifications waiting to be delivered it will open a single connection
|
104
|
+
to Apple and push all the notifications through that one connection. Apple does not like people opening/closing
|
105
|
+
connections constantly, so it's pretty important that you are careful about batching up your notifications so
|
106
|
+
Apple doesn't shut you down.
|
107
|
+
|
103
108
|
Released under the MIT license.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markbates-apn_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.20090727132135
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markbates
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-27 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|