views/index.erb in ass-0.0.15 vs views/index.erb in ass-0.0.17

- old
+ new

@@ -1,26 +1,17 @@ - - <h1>Apple Service Server (<%= $VERSION %>) </h1> - <hr> - <p/> - <p><b> - author: Eiffel(Q) <br/> - email: eiffelqiu@gmail.com <br/> - github: https://github.com/eiffelqiu/ - </b><p/> - <hr> - <pre class="prettyprint linenums"> +<h3>Apple Service Server Usage: </h3> +<pre class="prettyprint linenums"> 1: How to register notification? (Client Side) - + In AppDelegate file, inside didRegisterForRemoteNotificationsWithDeviceToken method access url below to register device token: - <% $apps.each { |app| %> - '#{app}': http://serverIP:#{$port}/v1/apps/#{app}/DeviceToken - <% } %> + + http://serverIP:4567/v1/apps/{yourapp}/DeviceToken + 2: How to send push notification? (Server Side) - <% $apps.each { |app| %> - $ curl http://localhost:#{$port}/v1/apps/#{app}/push/{message}/{pid} - <% } %> + + $ curl http://localhost:4567/v1/apps/{yourapp}/push/{message}/{pid} + Note: param1 (message): push notification message you want to send, remember the message should be html escaped - param2 (pid ): unique string to mark the message, for example current timestamp or md5/sha1 digest - </pre> + param2 (pid ): unique string to mark the message, for example current timestamp or md5/sha1 digest, db table ID +</pre>