Sha256: 9336313901911f98428a14cc248527edebc4d9686844527b25c46fbcbd7fa32f
Contents?: true
Size: 927 Bytes
Versions: 1
Compression:
Stored size: 927 Bytes
Contents
<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"> 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 <% } %> 2: How to send push notification? (Server Side) <% $apps.each { |app| %> $ curl http://localhost:#{$port}/v1/apps/#{app}/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>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ass-0.0.15 | views/index.erb |