README.md in pushpad-0.9.0 vs README.md in pushpad-0.10.0
- old
+ new
@@ -1,25 +1,18 @@
# Pushpad - Web Push Notifications
[![Build Status](https://travis-ci.org/pushpad/pushpad-ruby.svg?branch=master)](https://travis-ci.org/pushpad/pushpad-ruby)
[![Gem Version](https://badge.fury.io/rb/pushpad.svg)](https://badge.fury.io/rb/pushpad)
-[Pushpad](https://pushpad.xyz) is a service for sending push notifications from your web app. It supports the **Push API** (Chrome, Firefox, Opera) and **APNs** (Safari).
+[Pushpad](https://pushpad.xyz) is a service for sending push notifications from your web app. It supports the **Push API** (Chrome, Firefox, Opera, Edge) and **APNs** (Safari).
Features:
- notifications are delivered even when the user is not on your website
- users don't need to install any app or plugin
- you can target specific users or send bulk notifications
-Currently push notifications work on the following browsers:
-
-- Chrome (Desktop and Android)
-- Firefox (44+)
-- Opera (42+)
-- Safari
-
## Installation
Add this line to your application's Gemfile:
```ruby
@@ -48,33 +41,16 @@
- `auth_token` can be found in the user account settings.
- `project_id` can be found in the project settings. If your application uses multiple projects, you can pass the `project_id` as a param to methods (e.g. `notification.deliver_to user, project_id: 123`).
## Collecting user subscriptions to push notifications
-Pushpad offers two different products. [Learn more](https://pushpad.xyz/docs)
+You can subscribe the users to your notifications using the Javascript SDK, as described in the [getting started guide](https://pushpad.xyz/docs/pushpad_pro_getting_started).
-### Pushpad Pro
-
-Choose Pushpad Pro if you want to use Javascript for a seamless integration. [Read the docs](https://pushpad.xyz/docs/pushpad_pro_getting_started)
-
If you need to generate the HMAC signature for the `uid` you can use this helper:
```ruby
Pushpad.signature_for current_user.id
```
-
-### Pushpad Express
-
-If you want to use Pushpad Express, add a link to your website to let users subscribe to push notifications:
-
-```erb
-<a href="<%= Pushpad.path %>">Push notifications</a>
-
-<!-- If the user is logged in on your website you should track its user id to target him in the future -->
-<a href="<%= Pushpad.path_for current_user # or current_user_id %>">Push notifications</a>
-```
-
-When a user clicks the link is sent to Pushpad, asked to receive push notifications and redirected back to your website.
## Sending push notifications
```ruby
notification = Pushpad::Notification.new({