Sha256: 50ccd5bd7d3895e48b988db516eb6519ffb3069eeac3f6b8fa3a9f1123569d35
Contents?: true
Size: 788 Bytes
Versions: 1
Compression:
Stored size: 788 Bytes
Contents
# WebPush This Gem will send the Web Push API. It supports the encryption necessary to payload. Payload is supported by Chrome50+. ## Installation Add this line to your application's Gemfile: ```ruby gem 'webpush' ``` And then execute: $ bundle Or install it yourself as: $ gem install webpush ## Usage ``` message = { hoge: "piyo" } Webpush.payload_send(message: JSON.generate(message), endpoint: "https://android.googleapis.com/gcm/send/eah7hak....", p256dh: "BO/aG9nYXNkZmFkc2ZmZHNmYWRzZmFl...", auth: "aW1hcmthcmFpa3V6ZQ==", api_key: "[GoogleDeveloper APIKEY]") ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/webpush.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webpush-0.1.1 | README.md |