Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhue committed Mar 17, 2018
1 parent a5abbbb commit 2f9fda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notification-pusher/notification-pusher-onesignal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ You can also store OneSignal information in your notification opposed to specify
```ruby
notification.metadata[:onesignal_url] = Rails.application.routes.url_helpers.root_url
notification.metadata[:onesignal_contents] = { en: 'My notification content' }
notification.metadata[:onesignal_headers] = { en: 'My notification header' }
notification.metadata[:onesignal_headings] = { en: 'My notification header' }
notification.metadata[:onesignal_subtitle] = { en: 'My notification subtitle' }
notification.save
notification.push :OneSignal, player_ids: notification.target.onesignal_player_ids
Expand All @@ -92,7 +92,7 @@ notification.push :OneSignal, player_ids: notification.target.onesignal_player_i

**`contents`** Globalized content of the notification. Takes a hash with languages as keys and strings as values.

**`headers`** Globalized header of the notification. Takes a hash with languages as keys and strings as values.
**`headings`** Globalized header of the notification. Takes a hash with languages as keys and strings as values.

**`subtitle`** Globalized subtitle of the notification. Takes a hash with languages as keys and strings as values.

Expand Down

0 comments on commit 2f9fda6

Please sign in to comment.