Download the PHP package laravel-notification-channels/ionic-push-notifications without Composer
On this page you can find all versions of the php package laravel-notification-channels/ionic-push-notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-notification-channels/ionic-push-notifications
More information about laravel-notification-channels/ionic-push-notifications
Files in laravel-notification-channels/ionic-push-notifications
Package ionic-push-notifications
Short Description Ionic Push Notifications driver
License MIT
Homepage https://github.com/laravel-notification-channels/ionic-push-notifications
Informations about the package ionic-push-notifications
****
Ionic Cloud, and therefore this package, was deprecated Jan 31st, 2018. See Here for details https://blog.ionicframework.com/sunsetting-ionic-cloud-push-and-auth/
****
Ionic Push Notifications Channel for Laravel
This package makes it easy to send Ionic Push Notifications with Laravel.
Content
- Installation
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Setting up the Ionic Push service
Add your Ionic Push Authentication Token to your config/services.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
You can easily set different settings for iOS and Android individually like this...
In order to let your Notification know which device token to send to, add the routeNotificationForIonicPush
method to your Notifiable model.
This method needs to return the device token of the user (or the Ionic Auth email address, or Ionic userID of the user).
Do not forget to set the method of targeting users with sendTo()
if necessary (see below).
You can also return multiple tokens to send to a group of devices the user may own
Available Message methods
create()
: Accepts a string value ofyour-security-profile
.title()
: The title of your notification (for all platforms). Can be overwritten by platform specifictitle
method (see below).message()
: The message content of your notification (for all platforms). Can be overwritten by platform specificmessage
method (see below).sound()
: The title of your notification (for all platforms). Can be overwritten by platform specificsound
method (see below).payload()
: An array of data to send with your notification. Can be overwritten by platform specificpayload
method (see below).scheduled()
: Schedule a notification for future delivery. AcceptDateTime
object or a date as a string.sendTo()
: Set the method of targeting users - tokens (default), user_ids, or emails.
iOS specific methods
See here for full details on these methods.
iosMessage()
iosTitle()
iosBadge()
iosPayload()
iosSound()
iosPriority()
iosExpire()
iosContentAvailable()
Android specific methods
See here for full details on these methods.
androidCollapseKey()
androidContentAvailable()
androidData()
androidDelayWhileIdle()
androidIcon()
androidIconColor()
androidMessage()
androidPriority()
androidSound()
androidTag()
androidTimeToLive()
androidTitle()
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Mark Beech
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of ionic-push-notifications with dependencies
guzzlehttp/guzzle Version ~6.0
illuminate/notifications Version 5.3.*|5.4.*|5.5.*
illuminate/support Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*