spns 0.2.13 → 0.2.14
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/VERSION +1 -1
- data/lib/spns.rb +15 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.14
|
data/lib/spns.rb
CHANGED
@@ -157,8 +157,21 @@ class App < Sinatra::Base
|
|
157
157
|
end
|
158
158
|
|
159
159
|
get '/' do
|
160
|
-
|
161
|
-
|
160
|
+
o = "Simple Push Notification Server #{$VERSION} <br/><br/>" +
|
161
|
+
"author: Eiffel(Q) <br/>email: eiffelqiu@gmail.com<br/><br/>"
|
162
|
+
o += "1: How to register notification? (Client Side)<br/><br/>"
|
163
|
+
o += "In AppDelegate file, inside didRegisterForRemoteNotificationsWithDeviceToken method access url below to register device token:<br/><br/>"
|
164
|
+
$apps.each { |app|
|
165
|
+
o += "'#{app}': http://serverIP:#{$port}/v1/apps/#{app}/DeviceToken<br/>"
|
166
|
+
}
|
167
|
+
o += "<br/>2: How to send push notification? (Server Side)<br/><br/>"
|
168
|
+
$apps.each { |app|
|
169
|
+
o += "curl http://localhost:#{$port}/v1/apps/#{app}/push/{message}/{pid}<br/>"
|
170
|
+
}
|
171
|
+
o += "<br/>Note:<br/>"
|
172
|
+
o += "param1 (message): push notification message you want to send, remember the message should be html escaped<br/>"
|
173
|
+
o += "param2 (pid ): unique string to mark the message, for example current timestamp or md5/sha1 digest<br/>"
|
174
|
+
o
|
162
175
|
end
|
163
176
|
|
164
177
|
$apps.each { |app|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -330,7 +330,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
330
330
|
version: '0'
|
331
331
|
segments:
|
332
332
|
- 0
|
333
|
-
hash:
|
333
|
+
hash: 2587558808165610920
|
334
334
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
335
335
|
none: false
|
336
336
|
requirements:
|