You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple, pure Ruby client to the [OneSignal](https://onesignal.com/apps/22bc6dec-5150-4d6d-8628-377259d2dd14/segments) API.
5
+
A simple, pure Ruby client to the [OneSignal Push Notification API](https://onesignal.com/). OneSignal provides a self-serve customer engagement solution for Push Notifications, Email, SMS & In-App.
6
6
7
7
## Installation
8
8
@@ -137,6 +137,13 @@ player = OneSignal.fetch_player(player_id)
Filters can be created with a simple DSL. It closely matches the [JSON reference](https://documentation.onesignal.com/reference#section-send-to-users-based-on-filters), with a few touches of syntax
You can customize notification icons by passing a `OneSignal::Icons` object.
204
+
```ruby
205
+
icons =OneSignal::Icons.new(
206
+
small_icon:'image URL',
207
+
huawei_small_icon:'image URL',
208
+
large_icon:'image URL',
209
+
huawei_large_icon:'image URL',
210
+
adm_small_icon:'image URL',
211
+
adm_large_icon:'image URL',
212
+
chrome_web_icon:'image URL',
213
+
firefox_icon:'image URL',
214
+
chrome_icon:'image URL'
215
+
)
216
+
OneSignal::Notification.new(icons: icons)
217
+
```
218
+
195
219
**WARNING**
196
220
Passing `include_player_ids` alongside other params is prohibited and will raise an `ArgumentError`.
197
221
Either use `include_player_ids` or use the other params.
@@ -212,7 +236,7 @@ This repo is managed following the [Git Flow](https://danielkummer.github.io/git
212
236
-`feature/my-awesome-branch` are personal, dedicated branches for working on actual features. They are merged in develop once completed and then deleted.
213
237
-`hotfix/my-awesome-fix` are special branches dedicated to bugfixes that compromise the library functionality. They are merged
214
238
in both master and develop and then deleted.
215
-
239
+
216
240
[CHANGELOG](CHANGELOG.md) entries MUST be added for every change made to the source code.
0 commit comments