Skip to content

Commit

Permalink
Merge pull request #186 from dela-dels/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
berkayk authored Feb 11, 2024
2 parents 2eeca4d + 5b8d275 commit 24751a2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ You can easily send a message to all registered users with the command
);
```

`$url` , `$data` , `$buttons` and `$schedule` fields are exceptional. If you
provide a `$url` parameter, users will be redirecting to that url.
`$url` , `$data` , `$buttons` and `$schedule` fields are optional. If you
provide a `$url` parameter, users will be redirected to that url.


### Sending a Notification based on Tags/Filters
Expand Down Expand Up @@ -132,7 +132,7 @@ You can send a message based on a set of tags with the command

### Sending a Notification To A Specific User

After storing a user's tokens in a table, you can simply send a message with
After storing a user's token in a table, you can simply send a message with

```php
OneSignal::sendNotificationToUser(
Expand All @@ -147,14 +147,14 @@ After storing a user's tokens in a table, you can simply send a message with

`$userId` is the user's unique id where he/she is registered for notifications.
Read https://documentation.onesignal.com/docs/add-user-data-tags for additional details.
`$url` , `$data` , `$buttons` and `$schedule` fields are exceptional. If you provide
a `$url` parameter, users will be redirecting to that url.
`$url` , `$data` , `$buttons` and `$schedule` fields are optional. If you provide
a `$url` parameter, users will be redirected to that url.



### Sending a Notification To A Specific external User (custom user id added by user)

After storing a user's tokens in a table, you can simply send a message with
After storing a user's token in a table, you can simply send a message with

```php
OneSignal::sendNotificationToExternalUser(
Expand All @@ -170,7 +170,7 @@ After storing a user's tokens in a table, you can simply send a message with
`$userId` is the user's unique external id (custom id) added by the user where he/she is registered for notifications.
Read https://documentation.onesignal.com/docs/add-user-data-tags for additional details.
`$url` , `$data` , `$buttons` and `$schedule` fields are exceptional. If you provide
a `$url` parameter, users will be redirecting to that url.
a `$url` parameter, users will be redirected to that url.

### Sending a Notification To Segment

Expand All @@ -187,8 +187,8 @@ You can simply send a notification to a specific segment with
);
```

`$url` , `$data` , `$buttons` and `$schedule` fields are exceptional. If you
provide a `$url` parameter, users will be redirecting to that url.
`$url` , `$data` , `$buttons` and `$schedule` fields are optional. If you
provide a `$url` parameter, users will be redirected to that url.

### Sending a Custom Notification

Expand Down Expand Up @@ -237,7 +237,7 @@ OneSignal::addParams($params)->sendNotificationToAll($message);

### 2. Sending a message with high priority

This time, we will specify parameters one by one.
This time, we will specify parameters one after the other.

```php
use OneSignal;
Expand Down

0 comments on commit 24751a2

Please sign in to comment.