GitHub - kadircanerergun/laravel-onesignal: One Signal Push Notification Library...
source link: https://github.com/kadircanerergun/laravel-onesignal
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
Laravel OneSignal
Send push notifications easily with OneSignal
Contents
Installation
In order to add Laravel OneSignal to your project, just add
composer require kce/onesignal-laravel
'providers' => [
...
.
.
KCE\OneSignal\OneSignalServiceProvider::class
]
...
.
.,
'aliases' => [
...
..
.
'OneSignalClient' => KCE\OneSignal\Facades\OneSignalClient::class
]
php artisan vendor:publish --provider="KCE\OneSignal\OneSignalServiceProvider"
Usage
Configuration
This package requires you to change the fields in the config/onesignal.php
file:
Send to ALL
Send notification to all subscribed devices
Send to Country
Send notification to specific country
Send to Location
Send notification to a particular area-wide. Use radius in meters
Send to single user or users.
Send notification to player ids.
Send to segment
Send notification to one or more segments
Send to Tags
Send notification filter by tags
Add Data and/or Title To Notifications
Scheduling
You can schedule notification for future date time.
Schedule based on User's Timezone
Notification will deliver at a specific time-of-day in each users own timezone.
addTag / addOrTag
Send by First / Last Session
Multi Language Notifications
MORE OPTIONS
You can use method chaining...
License
Laravel OneSignal is free software distributed under the terms of the MIT license.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK